From 923885b3fb2e7aa9ad0ce54d5e1bb738aa513ead Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 10 Nov 2016 21:08:01 -0600 Subject: [PATCH] Moved the removing of the help command to the main method --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 09f5b86..d83f98b 100644 --- a/bot.py +++ b/bot.py @@ -30,8 +30,6 @@ async def on_ready(): if not hasattr(bot, 'uptime'): bot.uptime = pendulum.utcnow() - bot.remove_command('help') - @bot.event async def on_message(message): @@ -120,6 +118,8 @@ async def on_command_error(error, ctx): if __name__ == '__main__': + bot.remove_command('help') + for e in config.extensions: bot.load_extension(e) bot.run(config.bot_token)