mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Always tick Voice requirements on startup screen (#2413)
Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
parent
f2ebf52f6e
commit
dc8e61cbe5
@ -144,7 +144,7 @@ def init_events(bot, cli_flags):
|
|||||||
|
|
||||||
sentry = await bot.db.enable_sentry()
|
sentry = await bot.db.enable_sentry()
|
||||||
mongo_enabled = storage_type() != "JSON"
|
mongo_enabled = storage_type() != "JSON"
|
||||||
reqs_installed = {"voice": None, "docs": None, "test": None}
|
reqs_installed = {"docs": None, "test": None}
|
||||||
for key in reqs_installed.keys():
|
for key in reqs_installed.keys():
|
||||||
reqs = [x.name for x in red_pkg._dep_map[key]]
|
reqs = [x.name for x in red_pkg._dep_map[key]]
|
||||||
try:
|
try:
|
||||||
@ -157,7 +157,7 @@ def init_events(bot, cli_flags):
|
|||||||
options = (
|
options = (
|
||||||
("Error Reporting", sentry),
|
("Error Reporting", sentry),
|
||||||
("MongoDB", mongo_enabled),
|
("MongoDB", mongo_enabled),
|
||||||
("Voice", reqs_installed["voice"]),
|
("Voice", True),
|
||||||
("Docs", reqs_installed["docs"]),
|
("Docs", reqs_installed["docs"]),
|
||||||
("Tests", reqs_installed["test"]),
|
("Tests", reqs_installed["test"]),
|
||||||
)
|
)
|
||||||
@ -198,19 +198,17 @@ def init_events(bot, cli_flags):
|
|||||||
await ctx.send(disabled_message.replace("{command}", ctx.invoked_with))
|
await ctx.send(disabled_message.replace("{command}", ctx.invoked_with))
|
||||||
elif isinstance(error, commands.CommandInvokeError):
|
elif isinstance(error, commands.CommandInvokeError):
|
||||||
log.exception(
|
log.exception(
|
||||||
"Exception in command '{}'" "".format(ctx.command.qualified_name),
|
"Exception in command '{}'".format(ctx.command.qualified_name),
|
||||||
exc_info=error.original,
|
exc_info=error.original,
|
||||||
)
|
)
|
||||||
if should_log_sentry(error):
|
if should_log_sentry(error):
|
||||||
sentry_log.exception(
|
sentry_log.exception(
|
||||||
"Exception in command '{}'" "".format(ctx.command.qualified_name),
|
"Exception in command '{}'".format(ctx.command.qualified_name),
|
||||||
exc_info=error.original,
|
exc_info=error.original,
|
||||||
)
|
)
|
||||||
|
|
||||||
message = (
|
message = "Error in command '{}'. Check your console or logs for details.".format(
|
||||||
"Error in command '{}'. Check your console or "
|
ctx.command.qualified_name
|
||||||
"logs for details."
|
|
||||||
"".format(ctx.command.qualified_name)
|
|
||||||
)
|
)
|
||||||
exception_log = "Exception in command '{}'\n" "".format(ctx.command.qualified_name)
|
exception_log = "Exception in command '{}'\n" "".format(ctx.command.qualified_name)
|
||||||
exception_log += "".join(
|
exception_log += "".join(
|
||||||
@ -267,9 +265,9 @@ def init_events(bot, cli_flags):
|
|||||||
system_now = datetime.datetime.utcnow()
|
system_now = datetime.datetime.utcnow()
|
||||||
diff = abs((discord_now - system_now).total_seconds())
|
diff = abs((discord_now - system_now).total_seconds())
|
||||||
if diff > 60:
|
if diff > 60:
|
||||||
log.warn(
|
log.warning(
|
||||||
"Detected significant difference (%d seconds) in system clock to discord's clock."
|
"Detected significant difference (%d seconds) in system clock to discord's "
|
||||||
" Any time sensitive code may fail.",
|
"clock. Any time sensitive code may fail.",
|
||||||
diff,
|
diff,
|
||||||
)
|
)
|
||||||
bot.checked_time_accuracy = discord_now
|
bot.checked_time_accuracy = discord_now
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user