diff --git a/club-penguin.py b/club-penguin.py index c7e6cab..8abda5d 100644 --- a/club-penguin.py +++ b/club-penguin.py @@ -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