Skip to content

Commit

Permalink
Always tick Voice requirements on startup screen (#2413)
Browse files Browse the repository at this point in the history
Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
  • Loading branch information
Tobotimus committed Feb 4, 2019
1 parent f2ebf52 commit dc8e61c
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions redbot/core/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def on_ready():

sentry = await bot.db.enable_sentry()
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():
reqs = [x.name for x in red_pkg._dep_map[key]]
try:
Expand All @@ -157,7 +157,7 @@ async def on_ready():
options = (
("Error Reporting", sentry),
("MongoDB", mongo_enabled),
("Voice", reqs_installed["voice"]),
("Voice", True),
("Docs", reqs_installed["docs"]),
("Tests", reqs_installed["test"]),
)
Expand Down Expand Up @@ -198,19 +198,17 @@ async def on_command_error(ctx, error):
await ctx.send(disabled_message.replace("{command}", ctx.invoked_with))
elif isinstance(error, commands.CommandInvokeError):
log.exception(
"Exception in command '{}'" "".format(ctx.command.qualified_name),
"Exception in command '{}'".format(ctx.command.qualified_name),
exc_info=error.original,
)
if should_log_sentry(error):
sentry_log.exception(
"Exception in command '{}'" "".format(ctx.command.qualified_name),
"Exception in command '{}'".format(ctx.command.qualified_name),
exc_info=error.original,
)

message = (
"Error in command '{}'. Check your console or "
"logs for details."
"".format(ctx.command.qualified_name)
message = "Error in command '{}'. Check your console or logs for details.".format(
ctx.command.qualified_name
)
exception_log = "Exception in command '{}'\n" "".format(ctx.command.qualified_name)
exception_log += "".join(
Expand Down Expand Up @@ -267,9 +265,9 @@ async def on_message(message):
system_now = datetime.datetime.utcnow()
diff = abs((discord_now - system_now).total_seconds())
if diff > 60:
log.warn(
"Detected significant difference (%d seconds) in system clock to discord's clock."
" Any time sensitive code may fail.",
log.warning(
"Detected significant difference (%d seconds) in system clock to discord's "
"clock. Any time sensitive code may fail.",
diff,
)
bot.checked_time_accuracy = discord_now
Expand Down

0 comments on commit dc8e61c

Please sign in to comment.