moonstar-x/discord-tts-bot

bot not starting

GarraBlanca2003 opened this issue ยท 3 comments

๐Ÿ› the bot not starting

i copy paste the bot token in the settings.json and gives this error
/discord-tts-bot/node_modules/discord.js/src/client/Client.js:237
if (!token || typeof token !== 'string') throw new Error('TOKEN_INVALID');
^

Error [TOKEN_INVALID]: An invalid token was provided.
at TTSClient.login (/discord-tts-bot/node_modules/discord.js/src/client/Client.js:237:52)
at Object. (/discord-tts-bot/src/app.js:168:8)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
[Symbol(code)]: 'TOKEN_INVALID'
}

Do you have a settings.json file inside the config folder with your bot's token?

Do you have a settings.json file inside the config folder with your bot's token?

Sorry I didn't see your message above entirely.

Make sure that:

  1. The config file name is settings.json and not settings.json.example.
  2. Make sure your bot token is actually valid, maybe regenerate a new one in the application page. Make sure you're using the token and not the client ID.

i had a version of node to new 16.10 downgraded node fixed the depencies ,now working thanks!