Detect Word Then Send Message (discord.py) code example
Example 1: Detect Word Then Send Message (discord.py)
@client.event
async def on_message(message):
if "wow" in message.content:
await message.channel.send("oh wow")
Example 2: Detect Word Then Send Message (discord.py)
#New Event, prints oh wow if someone says wow
@client.event
async def on_message(message):
if "wow" in message.content:
await channel.send("oh wow")
#End of Event