#problem with the bot

22 messages · Page 1 of 1 (latest)

daring plume
#

Hi,

Until a week ago, the bot was working fine, but now I'm experiencing some issues. For example, it repeats certain messages, like the welcome message, twice. I checked with a friend and he's having the same problem. Do you know what might be causing this?

idle loomBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
cursive rune
#

the dual welcome message is a discord bug most likely, but without any code or detailed explanation we cant really help

daring plume
#

When I get home I'll send the code

daring plume
cursive rune
#

Duplicate listeners

#

most likely

#

this includes your bot running twice

daring plume
cosmic blaze
#

It could… you should only listen to each event once and dispatch from there

daring plume
#

okay I'll try, although until 3 days ago everything was going correctly

daring plume
#

the problem persists

cursive rune
#

and do you have a single listener now?

daring plume
cursive rune
#

Show your updated code

daring plume
#

but give me error
<rejected> DiscordAPIError: Interaction has already been acknowledged.

cursive rune
#

Yeah you're running multiple instances of your bot

#

Or running the same listener twice at least

daring plume
#

Now I found out that he also sends double messages... but why all of a sudden did this happen?

#

I solved it....there were two client.login