Dual Hosting

Hi, would there be an easy way to detect if your bot is being dual hosted?
11 Replies
d.js toolkit
d.js toolkit4d 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!
Syjalo
Syjalo4d ago
What do you mean by dual hosted?
Bacio001
Bacio001OP4d ago
As in 2 instances of a bot with the same token are online
NyR
NyR4d ago
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
Bacio001
Bacio001OP4d ago
I get that part, but I would like to make a way to detect it.
Syjalo
Syjalo4d ago
There's no way, unless you track that yourself or ask Discord
sboWo
sboWo4d ago
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
No description
lupus
lupus3d ago
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.
Amgelo
Amgelo3d ago
are you trying to detect whether your token was stolen?
Bacio001
Bacio001OP3d ago
That would be one of the reasons + I just wanted to try and make a detector
Syjalo
Syjalo3d ago
There's no way to detect if your token was stolen, unless you see suspicious actions of your bot

Did you find this page helpful?