Home > Software engineering >  Issue with bot responding multiple times to one command discord.py
Issue with bot responding multiple times to one command discord.py

Time:10-11

I only have one console open, I think this is because of the on_message because once I remove those it only responds once like it should. I am using await self.client.process_commands(message) after so really not sure why it would repeat. Please let me know if you have any suggestions.

CodePudding user response:

I thenk you are using Cog and use Cog.listener().

event and listener in discord.py is 2 different decorator. for example listeners called in events.

remove this line:

await self.client.process_commands(message)
  • Related