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

Returned after printing the channel is already registered as nsfw

This commit is contained in:
Phxntxm 2016-07-09 10:41:44 -05:00
parent c9f1a44667
commit 5de2c9cc5d

View file

@ -20,6 +20,7 @@ class Mod:
cursor.execute('insert into nsfw_channels (channel_id) values ("{}")'.format(ctx.message.channel.id))
except pymysql.IntegrityError:
await self.bot.say("This channel is already registered as 'nsfw'!")
return
config.connection.commit()
await self.bot.say("This channel has just been registered as 'nsfw'! Have fun you naughties ;)")