on message sent event discord.py 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')