discord .py how to use on_message and client.command code example
Example 1: send message discord.py
await message.channel.send("Your message")
Example 2: on message discord py
@bot.event
async def on_message(message):
if message.content == "pong":
await message.channel.send('ping')