1
0
Fork 0
mirror of synced 2024-05-18 19:42:28 +12:00

Moved the removing of the help command to the main method

This commit is contained in:
Phxntxm 2016-11-10 21:08:01 -06:00
parent bde010dd6a
commit 923885b3fb

4
bot.py
View file

@ -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)