Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check if a message includes a word discord.py

@bot.event
async def on_message(msg):
    if 'word' in msg.content:
        print('Keyword found')
        # Do stuff here
 
PREVIOUS NEXT
Tagged: #check #message #includes #word
ADD COMMENT
Topic
Name
5+7 =