Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

3. Configuration

Lea Seibert edited this page May 17, 2019 · 3 revisions

You can do some basic configuration in the config.json file. This is completely optional though!

{
    "debug": true, // this will log additional information during runtime, set to false to disable
    "prefix": "!", // how to call the bot, the default is ! so commands are used like this: !twitch-track
    "allowDM": true, // whether to allow people DM'ing the bot to track channels via DM
    "setAvatar": true, // set this to false to prevent the bot from changing the avatar on boot 
    "avatarPath": "./res/avatar.png", // path to the avatar image for the bot to use
    "commands": {
        "twitchTrack": {
            "enabled": true, 
            // you can disable a command by setting this to false
            "cmd": ["twitch-track", "track-channel"], 
            // how to run this command, you can set multiple aliases for every command which is optional
            "perms": ["MANAGE_CHANNELS", "MANAGE_GUILD"] 
            // which permissions running this command requires, there's a list of permissions to use below
        },
        // ...
        // every command has the same structure
    }
}

List of valid Discord permissions

Next step: Commands

Clone this wiki locally