Answers for "how to make a function on message in discord.py"

4

on message discord py

@bot.event
async def on_message(message):
    if message.content == "pong":
        await message.channel.send('ping')
Posted by: Guest on January-12-2021

Code answers related to "how to make a function on message in discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language