My Discord.py Bot With Chat-filter Event Sends 2 Or More Messages Instead Of 1
Not so long ago added in my discord bot chat-filter ,which delete messages which i dont want to see.But i have a problem with this.Before this new event my bot sends on the command
Solution 1:
Guessing this is a dup of this question
Since you have 2 on_message()
functions only the second one will be processed. You should remove one.
You issue with the multiple messages is because you are processing your await bot.process_commands(message)
command in your for
loop. Based on having 3 bad words you have 3 messages.
Try de-indenting your await bot.process_commands(message)
to be even with your for word in filter
.
Post a Comment for "My Discord.py Bot With Chat-filter Event Sends 2 Or More Messages Instead Of 1"