Skip to main content

Configuration

Here is some information about the configuration of the bot.

Configuration file

The config.js file is located in the same folder as the app executable. This file contains all the configuration options for the app. You can find a list of all the configuration options below.

Configuration options

General

Here are the general configuration options. These options are located at the top of the configuration file.

OptionDescription
tokenThe token of the bot. You can find this token in the Discord Developer Portal.
licenseKeyThe license key of the bot. You can find your license keys by typing /license display in the support server.
guildIdThe ID of the discord server where the bot should be active. You can find this ID by enabling developer mode in Discord.
debugModeIf enabled the bot will log more information to the console.
adminRoleIdThe ID of the admin role. This role will have access to the admin commands.
logChannelIdThe ID of the log channel. This channel will be used to log all the bot actions.

databases

Here are the configuration options for the databases. These options are located in the databases object.

Bot Database

This database is required for the bot to function, it stores all the data of the bot. Incorrect configuration of this database will result in errors on startup.

OptionDescription
hostThe host of the database.
userThe user of the database.
portThe port of the database.
passwordThe pass of the database.
databaseThe name of the database.

Servers

Here are the configuration options for the servers. These options are located in the servers object. This object contains an array of servers. Each server has its own configuration options.

OptionDescription
nameThe name of the server. This name is used in the messages.
ipThe IP of the server.
portThe RCON port of the server.
passwordThe RCON password of the server.
note

If you have multiple servers you can copy the server object and change the information to match the other server and place it in the array.


Modules

This bot has a lot of modules that can be enabled or disabled. These modules are located in the modules object. Each module has its own configuration options.

You can find all information about the bot modules HERE