Multipurpose-discord-bot
Multipurpose-discord-bot copied to clipboard
Process.env.token
when Process.env.token is type Than it will show that invalid token in replit
when Process.env.token is type Than it will show that invalid token in replit
have u even entered your token in the secrets in replit?
Yes I have entered but showing invalid token
Yes I have entered but showing invalid token
it could be either
the secret name is not
token
or your token is just wrong
you can also check if when the bot is logging in, it is doing
client.login(process.env.token || config.token)
Help mee How to fix this I setup it correctly
Help mee How to fix this I setup it correctly
Hey There, This problem is because there is a package named "dotenv", which is not mentioned in the package.json file.
How to fix this: In the package.json, add the package like this
"dotenv": "16.0.0",
This will work, hoping it helps. Melon
Help mee How to fix this I setup it correctly
Manually add the package to the package.json file
Help mee How to fix this I setup it correctly
Manually add the package to the package.json file
npm I dotenv
Help mee How to fix this I setup it correctly
Manually add the package to the package.json file
npm I dotenv
is it resolved?