amongcord icon indicating copy to clipboard operation
amongcord copied to clipboard

Inviled Token

Open arnon001 opened this issue 4 years ago • 1 comments

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

arnon001 avatar Nov 09 '20 07:11 arnon001

If you start the bot on your local machine, you need to do two steps:

  1. Copy your own Bot-Token to the .env.example-File in the root directory
  2. Rename the .env.example-File to .env

You should never commit or push that .env-File because it contains your sensitive Bot-Token.

Cahllagerfeld avatar Dec 09 '20 20:12 Cahllagerfeld