mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Added restart/startup reaction to shutdown command
This commit is contained in:
parent
5df1703fb2
commit
ba10b668a7
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue