From a112a9173fca3c73d8107ab3bc842dcf0a915ed8 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 9 Jul 2016 10:19:34 -0500 Subject: [PATCH] Changed this to save the channel's ID and not the messages...oops --- cogs/mod.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/mod.py b/cogs/mod.py index ac53860..3faeaec 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -15,8 +15,9 @@ class Mod: """Registers this channel in the database as a 'nsfw' channel''""" cursor = config.connection.cursor() cursor.execute('use {}'.format(config.db_default)) - cursor.execute('insert into nsfw_channels (channel_id) values ("{}")'.format(ctx.message.id)) + cursor.execute('insert into nsfw_channels (channel_id) values ("{}")'.format(ctx.message.channel.id)) config.connection.commit() + await bot.say("This channel has just been registered as 'nsfw'! Have fun you naughties ;)") @commands.command(pass_context=True, no_pm=True) @checks.isAdmin()