Moved the removing of the help command to the main method
This commit is contained in:
parent
bde010dd6a
commit
923885b3fb
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -30,8 +30,6 @@ async def on_ready():
|
||||||
if not hasattr(bot, 'uptime'):
|
if not hasattr(bot, 'uptime'):
|
||||||
bot.uptime = pendulum.utcnow()
|
bot.uptime = pendulum.utcnow()
|
||||||
|
|
||||||
bot.remove_command('help')
|
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_message(message):
|
async def on_message(message):
|
||||||
|
@ -120,6 +118,8 @@ async def on_command_error(error, ctx):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
bot.remove_command('help')
|
||||||
|
|
||||||
for e in config.extensions:
|
for e in config.extensions:
|
||||||
bot.load_extension(e)
|
bot.load_extension(e)
|
||||||
bot.run(config.bot_token)
|
bot.run(config.bot_token)
|
||||||
|
|
Loading…
Reference in a new issue