1
0
Fork 0
mirror of synced 2024-06-15 00:54:34 +12:00

reset battling in on_ready case there was a disconnect, and this was not cleared when it should be

This commit is contained in:
Phxntxm 2016-08-07 07:51:35 -05:00
parent 44ff02c4ba
commit 8e2c343cc1

1
bot.py
View file

@ -37,6 +37,7 @@ async def on_ready():
# Change the status upon connection to the default status
await bot.change_status(discord.Game(name=config.defaultStatus, type=0))
channel_id = config.getContent('restart_server')
config.saveContent('battling',{})
if channel_id != 0:
destination = discord.utils.find(lambda m: m.id == channel_id, bot.get_all_channels())
await bot.send_message(destination, "I have just finished restarting!")