python discord get message content code example
Example 1: on message discord py
@bot.event
async def on_message(message):
if message.content == "pong":
await message.channel.send('ping')
Example 2: python discord know message from bot
def on_message(self, message):
if (message.author.bot):
return #if this is true: then it is by a bot.