Simple question, probably not so simple answer. Can I make the bot answer to more words, not only "Hi"? In example,
message.content.find would have multiple words that would execute the event.
Here’s the code:
@client.event async def on_message(message): if message.content.find("Hi") >= 0: channel = message.channel await message.channel.send("Hello!") def check(m): return m.content != "x" and m.channel == channel msg = await client.wait_for("message", check=check) await message.channel.send("How are you?".format(msg))
Source: Python Questions