Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inviled Token #52

Open
arnon001 opened this issue Nov 9, 2020 · 1 comment
Open

Inviled Token #52

arnon001 opened this issue Nov 9, 2020 · 1 comment

Comments

@arnon001
Copy link

arnon001 commented Nov 9, 2020

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

@Cahllagerfeld
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants