IGRohan / IGBot

A Multi-Purpose Discord Bot with tons of Moderation, Economy, Music, Fun, Images and Utility commands.
https://igrohan.github.io/IGBot/
Apache License 2.0
37 stars 19 forks source link

Token error : it says token must be a string #4

Closed ItsK4P closed 3 years ago

IGRohan commented 3 years ago

token must be a string where? The discord bot token or.....?

ItsK4P commented 3 years ago

it says : SyntaxError: Invalid Token: Token must be a String

IGRohan commented 3 years ago

yea but where? there are a couple of places where it could ask for token. The error should include where the token is asked for.

ItsK4P commented 3 years ago

tell me where it ask for token cause it doesnt show the place

IGRohan commented 3 years ago

i think its on the joke and fml commands. You need an API key from blague.xyz. Copy your api key and instead of placing in the .env file, directly place it in the jokes and fml command files. I'll fix the env file issue soon, till then use the API key directly.

In the joke.js file, you'll see this line ;--

const joker = new Client(process.env.blagueApi, {
    defaultLang: "EN" //  The default language for jokes and fml  
});

change the process.env.blagueApi to 'YOUR_API_KEY' do the same for fml.js