1
0
Fork 0
mirror of synced 2024-06-01 18:29:38 +12:00

Corrected the restart variable

This commit is contained in:
phxntxm 2016-08-30 19:04:12 -05:00
parent 0a0776651d
commit ac199adcf3

2
bot.py
View file

@ -42,7 +42,7 @@ async def on_ready():
print("We have connected")
# Change the status upon connection to the default status
await bot.change_status(discord.Game(name=config.default_status, type=0))
channel_id = config.get_content('restart_server')
channel_id = config.get_content('restart_server') or 0
# Just in case the bot was restarted while someone was battling, clear it so they do not get stuck
config.save_content('battling', {})