amongcord
amongcord copied to clipboard
Inviled Token
C:\Users\ארנון הכהן\Desktop\amongcord\node_modules\discord.js\src\client\Client.js:205
if (!token || typeof token !== 'string') throw new Error('TOKEN_INVALID');
^
Error [TOKEN_INVALID]: An invalid token was provided.
at Client.login (C:\Users\ארנון הכהן\Desktop\amongcord\node_modules\discord.js\src\client\Client.js:205:52)
at Object.<anonymous> (C:\Users\ארנון הכהן\Desktop\amongcord\src\index.js:232:8)
at Module._compile (node:internal/modules/cjs/loader:1083:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:72:12)
at node:internal/main/run_main_module:17:47 {
[Symbol(code)]: 'TOKEN_INVALID'
}
i'm getting it Every Time That i Trying To Start the bot
If you start the bot on your local machine, you need to do two steps:
- Copy your own Bot-Token to the .env.example-File in the root directory
- Rename the .env.example-File to
.env
You should never commit or push that .env-File because it contains your sensitive Bot-Token.