I'm making a discord.py bot, and I want it to send a message when catch a keyword in a sentence or paragraph. I know how to make a keyword command, but I don't know how to make it to determine a keyword inside words, can someone help me this problem? That's my command:
@bot.event
async def on_message(msg):
if msg.content == 'Good morning' and msg.author != bot.user:
await msg.channel.send('Good morning boys:)')