From 801ee2be716ca80afc6cf460ff0abf022dfe0234 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 30 Oct 2017 23:28:37 -0400 Subject: [PATCH] Changed "restart_(ch to chan)" to "startup_" for clarity with shutdown --- src/main/cogs/owner.py | 8 ++++---- src/main/run.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/cogs/owner.py b/src/main/cogs/owner.py index 6063a72..9982a9e 100644 --- a/src/main/cogs/owner.py +++ b/src/main/cogs/owner.py @@ -30,8 +30,8 @@ class Bot: 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.temp['startup_chan'] = ctx.channel.id + u.temp['startup_msg'] = ctx.message.id u.dump(u.temp, 'temp.pkl') # loop = self.bot.loop.all_tasks() @@ -52,8 +52,8 @@ class Bot: await self.bot.get_channel(u.config['info_channel']).send('**Restarting** 💤 . . .') # u.notify('R E S T A R T I N G') - u.temp['restart_ch'] = ctx.channel.id - u.temp['restart_msg'] = ctx.message.id + u.temp['startup_chan'] = ctx.channel.id + u.temp['startup_msg'] = ctx.message.id u.dump(u.temp, 'temp.pkl') # loop = self.bot.loop.all_tasks() diff --git a/src/main/run.py b/src/main/run.py index 46be830..b958072 100644 --- a/src/main/run.py +++ b/src/main/run.py @@ -51,8 +51,8 @@ async def on_ready(): await bot.get_channel(u.config['info_channel']).send('**Started** ☀️ .') # u.notify('C O N N E C T E D') if u.temp: - channel = bot.get_channel(u.temp['restart_ch']) - message = await channel.get_message(u.temp['restart_msg']) + channel = bot.get_channel(u.temp['startup_chan']) + message = await channel.get_message(u.temp['startup_msg']) await message.add_reaction('✅') u.temp.clear() @@ -70,8 +70,8 @@ async def on_error(error, *args, **kwargs): await bot.get_user(u.config['owner_id']).send('**ERROR** ⚠\n```\n{}```'.format(error)) await bot.get_channel(u.config['info_channel']).send('**ERROR** ⚠\n```\n{}```'.format(error)) if u.temp: - channel = bot.get_channel(u.temp['restart_ch']) - message = await channel.get_message(u.temp['restart_msg']) + channel = bot.get_channel(u.temp['startup_chan']) + message = await channel.get_message(u.temp['startup_msg']) await message.add_reaction('⚠') u.temp.clear() # u.notify('E R R O R')