on_message check message discord.py code example
Example: on message discord py
@bot.event
async def on_message(message):
if message.content == "pong":
await message.channel.send('ping')
@bot.event
async def on_message(message):
if message.content == "pong":
await message.channel.send('ping')