วิธีตรวจสอบว่ามีข้อความเกี่ยวกับคำพูด discord.py
@bot.event
async def on_message(msg):
if 'word' in msg.content:
print('Keyword found')
# Do stuff here
วิธีตรวจสอบว่าคุยกันเป็น nsfw discord.py
channel_nsfw = await self.is_nsfw(ctx.message.channel)
if channel_nsfw:
print("NSFW!")