comment vérifier si un message contient un mot discord.py
@bot.event
async def on_message(msg):
if 'word' in msg.content:
print('Keyword found')
# Do stuff here
comment vérifier si le chat est nsfw discord.py
channel_nsfw = await self.is_nsfw(ctx.message.channel)
if channel_nsfw:
print("NSFW!")