1
0
Fork 0
mirror of synced 2024-05-17 19:12:33 +12:00

Made sure the game was a kwarg in the new status changing method

This commit is contained in:
Phxntxm 2016-11-10 21:15:23 -06:00
parent 38639662f5
commit 4db64e0a26

4
bot.py
View file

@ -25,7 +25,7 @@ logging.basicConfig(level=logging.INFO, filename='bonfire.log')
@bot.event
async def on_ready():
# Change the status upon connection to the default status
await bot.change_presence(discord.Game(name=config.default_status, type=0))
await bot.change_presence(game=discord.Game(name=config.default_status, type=0))
if not hasattr(bot, 'uptime'):
bot.uptime = pendulum.utcnow()
@ -119,7 +119,7 @@ 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)