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
d.js toolkit
d.js toolkit9mo ago
- 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
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
mallusrgreat
mallusrgreat9mo ago
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
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
mallusrgreat
mallusrgreat9mo ago
done, no changes from what i can see
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
mallusrgreat
mallusrgreat9mo ago
yep
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
mallusrgreat
mallusrgreat9mo ago
yes yes
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
mallusrgreat
mallusrgreat9mo ago
wtf man it only logged once
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
mallusrgreat
mallusrgreat9mo ago
yarn start script is yarn build && node --no-warnings dist/index.js
mallusrgreat
mallusrgreat9mo ago
- 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.
mallusrgreat
mallusrgreat9mo ago
anyone?