ignore NSFW channels

This commit is contained in:
xenofem 2020-05-16 12:34:21 -04:00
parent 4d01c9c528
commit 522eb76d05

View file

@ -49,6 +49,9 @@ async def on_message(message):
if message.author == client.user:
return
if message.channel.is_nsfw():
return
if RUDE_WORDS_REGEX.search(message.content):
await message.channel.send('Your Club Penguin account has been deactivated for inappropriate language.')
oldnick = message.author.nick