From 6346e7c1f77efdb3040b15ce70596f04ef2fefd0 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 20 Nov 2017 06:23:55 -0500 Subject: [PATCH 1/2] Changed stdoutput to use channel names instead of IDs --- src/main/cogs/management.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/cogs/management.py b/src/main/cogs/management.py index a358438..7b40303 100644 --- a/src/main/cogs/management.py +++ b/src/main/cogs/management.py @@ -150,7 +150,7 @@ class Administration: u.dump(u.tasks, 'cogs/tasks.pkl') if not u.tasks['auto_del']: self.deleting = False - print('STOPPED : deleting #{}'.format(channel.id)) + print('STOPPED : deleting #{}'.format(channel.name)) await channel.send('**Stopped queueing messages for deletion in** {}'.format(channel.mention), delete_after=5) @cmds.command(name='autodelete', aliases=['autodel']) @@ -164,7 +164,7 @@ class Administration: if not self.deleting: self.bot.loop.create_task(self.delete()) self.deleting = True - print('AUTO-DELETING : #{}'.format(ctx.channel.id)) + print('AUTO-DELETING : #{}'.format(ctx.channel.name)) await ctx.send('**Auto-deleting all messages in {}**'.format(ctx.channel.mention), delete_after=5) else: raise exc.Exists From 3180a9dc608ce6bef71a9d7ed9816680a66133fd Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 20 Nov 2017 06:29:16 -0500 Subject: [PATCH 2/2] Missed id > name conversion --- src/main/cogs/management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cogs/management.py b/src/main/cogs/management.py index 7b40303..2001398 100644 --- a/src/main/cogs/management.py +++ b/src/main/cogs/management.py @@ -24,7 +24,7 @@ class Administration: for channel in u.tasks['auto_del']: temp = self.bot.get_channel(channel) self.bot.loop.create_task(self.queue_for_deletion(temp)) - print('AUTO-DELETING : #{}'.format(temp.id)) + print('AUTO-DELETING : #{}'.format(temp.name)) self.deleting = True self.bot.loop.create_task(self.delete())