Moved the removing of the help command to the main method
This commit is contained in:
parent
bde010dd6a
commit
923885b3fb
4
bot.py
4
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)
|
||||
|
|
Loading…
Reference in a new issue