Multipurpose-discord-bot icon indicating copy to clipboard operation
Multipurpose-discord-bot copied to clipboard

Process.env.token

Open Abhishek49242 opened this issue 3 years ago • 8 comments

when Process.env.token is type Than it will show that invalid token in replit

Abhishek49242 avatar Feb 03 '22 05:02 Abhishek49242

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?

mooogah avatar Feb 04 '22 03:02 mooogah

Yes I have entered but showing invalid token

Abhishek49242 avatar Feb 05 '22 13:02 Abhishek49242

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)

mooogah avatar Feb 06 '22 09:02 mooogah

Screenshot_20220209-204035_Chrome

Help mee How to fix this I setup it correctly

XxAcesXx avatar Feb 09 '22 12:02 XxAcesXx

Screenshot_20220209-204035_Chrome

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

MelonAmongUs avatar Feb 18 '22 05:02 MelonAmongUs

Screenshot_20220209-204035_Chrome

Help mee How to fix this I setup it correctly

Manually add the package to the package.json file

malbouy avatar Feb 22 '22 05:02 malbouy

Screenshot_20220209-204035_Chrome Help mee How to fix this I setup it correctly

Manually add the package to the package.json file

npm I dotenv

Screenshot_20220209-204035_Chrome 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?

mooogah avatar Mar 15 '22 00:03 mooogah