All events running twice
Running locally, the same code for two bots.
One is the prod bot and one is dev. Dev bot seems to be running twice.
Note that even though its the exact same code, the prod bot is using a different mongodb database name (the /test thing at the end) and is on a different host.
Tried resetting the token which did nothing.
Event handler: https://pastes.dev/mMLw8iGpzc
pastes | mMLw8iGpzc
A paste containing 35 lines of typescript.
15 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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!Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
idk man, one of the messages the bot sent is included in outdated code
and the bot totally ceases to work after i kill the process locally as well
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
done, no changes from what i can see
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
yep
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
yes
yes
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
wtf man it only logged once
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
yarn start
script is
yarn build && node --no-warnings dist/index.js
- Bot running locally runs events twice
- Tried killing the process, it turns the bot off completely
- Tried resetting the token
- Message sent by one of the ran events is from old code which I had changed
- Tried logging in the event, only logs once
- Event handler: https://pastes.dev/mMLw8iGpzc
pastes | mMLw8iGpzc
A paste containing 35 lines of typescript.
anyone?