Dual Hosting
Hi, would there be an easy way to detect if your bot is being dual hosted?
11 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!What do you mean by dual hosted?
As in 2 instances of a bot with the same token are online
It's your bot. So you should know if you are dual hosting or not. But if for some reason, you are unsure. Just reset the token
I get that part, but I would like to make a way to detect it.
There's no way, unless you track that yourself or ask Discord
If you get a response twice, you’re dual hosting
For slash commands you can only reply once, so the second host will crash, but here fir example the response is sent twice
If you host it on two different hosts (and you always use those) you could try implementing some mechanism outside of the discord API, but other than that it’s mostly just guesswork.
are you trying to detect whether your token was stolen?
That would be one of the reasons + I just wanted to try and make a detector
There's no way to detect if your token was stolen, unless you see suspicious actions of your bot