Made sure the game was a kwarg in the new status changing method
This commit is contained in:
parent
38639662f5
commit
4db64e0a26
1 changed files with 2 additions and 2 deletions
2
bot.py
2
bot.py
|
@ -25,7 +25,7 @@ logging.basicConfig(level=logging.INFO, filename='bonfire.log')
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
# Change the status upon connection to the default status
|
# 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'):
|
if not hasattr(bot, 'uptime'):
|
||||||
bot.uptime = pendulum.utcnow()
|
bot.uptime = pendulum.utcnow()
|
||||||
|
|
Loading…
Reference in a new issue