Configuration files

Create a file called: config.json

config.json
{
	"token": "your-token-goes-here"
}

Go back to your main bot file

const { token } = require('./config.json');

Now, load the token in our framework

const client = new Dotwood.Client({
    token: token, // Bot token
})

Last updated