Cómo comprobar si una palabra está en el mensaje discord.py

Ejemplos de código

2
0

cómo comprobar si un mensaje contiene una palabra discord.py

@bot.event
async def on_message(msg):
    if 'word' in msg.content:
        print('Keyword found')
        # Do stuff here
0
0

Detectar Palabra, a Continuación, Enviar el Mensaje (discord.py)

@client.event
async def on_message(message):

if "wow" in message.content:
    await message.channel.send("oh wow")

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................