1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-25 06:37:29 +00:00

Added restart/startup reaction to shutdown command

This commit is contained in:
Myned 2017-10-30 15:48:00 -04:00
parent 5df1703fb2
commit ba10b668a7

View file

@ -29,6 +29,11 @@ class Bot:
await ctx.message.add_reaction('🌙') await ctx.message.add_reaction('🌙')
await self.bot.get_channel(u.config['info_channel']).send('**Shutting down** 🌙 . . .') await self.bot.get_channel(u.config['info_channel']).send('**Shutting down** 🌙 . . .')
u.temp['restart_ch'] = ctx.channel.id
u.temp['restart_msg'] = ctx.message.id
u.dump(u.temp, 'temp.pkl')
# loop = self.bot.loop.all_tasks() # loop = self.bot.loop.all_tasks()
# for task in loop: # for task in loop:
# task.cancel() # task.cancel()