discord.py command on_message 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')