Changed this to save the channel's ID and not the messages...oops
This commit is contained in:
parent
2d25c04264
commit
a112a9173f
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue