Ask coding questions

← Back to all posts
How do I access my Discord.js token without giving it out
TorCenta

doing node . in shell gives me the error that it has an invalid token. I think that this is because it is having trouble accessing the hidden variable. Can you help me?

Voters
TorCenta
Comments
hotnewtop
Coder100

It will never work if you try running the bot on the shell. You must run it through .replit
so make a .replit file and add:

the run command is basically bash.

TorCenta

it has worked before, but because I don't want to give the token out I'm trying to tuse the "secrets" tab on the left and it isn't [email protected]

InvisibleOne

Use the secrets tab on the left side of the screen, and then use the code it generates to get the value of that token.

btfuss