@bot.event async def on_message(msg): if 'word' in msg.content: print('Keyword found') # Do stuff here
channel_nsfw = await self.is_nsfw(ctx.message.channel) if channel_nsfw: print("NSFW!")