From dc8e61cbe590231c6a53c9804b9937f6fce9dd90 Mon Sep 17 00:00:00 2001 From: Toby Harradine Date: Mon, 4 Feb 2019 22:33:48 +1100 Subject: [PATCH] Always tick Voice requirements on startup screen (#2413) Signed-off-by: Toby Harradine --- redbot/core/events.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/redbot/core/events.py b/redbot/core/events.py index dfbc79a811b..49bf57aafae 100644 --- a/redbot/core/events.py +++ b/redbot/core/events.py @@ -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: @@ -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"]), ) @@ -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( @@ -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