From ba10b668a73579136042c5714ba15c783a092008 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 30 Oct 2017 15:48:00 -0400 Subject: [PATCH] Added restart/startup reaction to shutdown command --- src/main/cogs/owner.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/cogs/owner.py b/src/main/cogs/owner.py index 3670ee7..6063a72 100644 --- a/src/main/cogs/owner.py +++ b/src/main/cogs/owner.py @@ -29,6 +29,11 @@ class Bot: await ctx.message.add_reaction('🌙') 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() # for task in loop: # task.cancel()