Closed ItsK4P closed 3 years ago
it says : SyntaxError: Invalid Token: Token must be a String
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.
tell me where it ask for token cause it doesnt show the place
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
token must be a string where? The discord bot token or.....?