1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Changed this to save the channel's ID and not the messages...oops

This commit is contained in:
Phxntxm 2016-07-09 10:19:34 -05:00
parent 2d25c04264
commit a112a9173f

View file

@ -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()