Returned after printing the channel is already registered as nsfw
This commit is contained in:
parent
c9f1a44667
commit
5de2c9cc5d
|
@ -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 ;)")
|
||||
|
||||
|
|
Loading…
Reference in a new issue