Can't turn on my bot


I’m having an issue when I try to urn on my bot, witch is a discord bot I recive this error :

throw err;
SyntaxError: /app/config.json: Unexpected token p in JSON at position 15
at JSON.parse ()
at Object.Module._extensions…json (module.js:679:27)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object. (/app/app.js:3:16)
at Module._compile (module.js:660:30)
at Object.Module._extensions…js (module.js:671:10)

I’ve folowed this tutorial

Thanks you for helping me.


The error refers to a malformed json. Make sure you are only using double quotes for strings, and that the keys are double quoted too :slight_smile:


I’ve fixed that just by not putting process.env.TOKEN in the config.json but directly login with the process.env.TOKEN