Configuration file
Inside of the src
folder, you should find a config.example.json
file. It should look something like this:
{
"token": "DISCORD BOT TOKEN",
"clientId": "DISCORD BOT CLIENTID",
"carterkey": "CARTER KEY",
"channelmode": "ON or OFF",
"channelid": "ID of Channel if channelmode is set to ON"
}
Token
You can find your discord bot token by heading over to the Discord Developer Portal, opening up your application, and going to the bot page.

ClientId
You can find your discord bots' Client Id by heading over to the Discord Developer Portal, opening up your application, and going to the OAuth2 page.
CarterKey
First, you need to create a new Carter Character. The Carter Team have created a perfect walkthrough on how to do this. Once created, you can then create your Carter API Key at the bottom of the character page

ChannelMode
You can either set this value to ON
or OFF
. This allows for messaging the bot through a Discord Channel in a server.
ChannelId
If the ChannelMode property is set to ON
, you need to specify the channel id that the bot should respond to messages in. You can find this by enabling developer mode in the Discord settings, under Advanced. This allows you to right click on any channel, and copy its ID.
Last updated