ignore NSFW channels
This commit is contained in:
parent
4d01c9c528
commit
522eb76d05
|
@ -49,6 +49,9 @@ async def on_message(message):
|
||||||
if message.author == client.user:
|
if message.author == client.user:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if message.channel.is_nsfw():
|
||||||
|
return
|
||||||
|
|
||||||
if RUDE_WORDS_REGEX.search(message.content):
|
if RUDE_WORDS_REGEX.search(message.content):
|
||||||
await message.channel.send('Your Club Penguin account has been deactivated for inappropriate language.')
|
await message.channel.send('Your Club Penguin account has been deactivated for inappropriate language.')
|
||||||
oldnick = message.author.nick
|
oldnick = message.author.nick
|
||||||
|
|
Loading…
Reference in a new issue