Answer the question
In order to leave comments, you need to log in
After writing a message, the bot starts spamming, discord.py - on_message?
After writing any message, the bot starts spamming.
I need the bot to send one message without spam
@client.event
async def on_message(message):
channel = message.channel
isBot = message.author.bot
await channel.send("Message")
Answer the question
In order to leave comments, you need to log in
@client.event
async def on_message(message):
channel = message.channel
isBot = message.author.bot
if(message.author.bot) return
await channel.send("Message")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question