Unable to launch discord bot due to invalid token

Use:: Dot Env

require('dotenv').config()
console.log(process.env.TOKEN)

And you can have problem with multi lines string value. it can be a issue, i had this problem with cert keys. Try to check it can correctly read one line value.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top