Configuration

The global configuration file is (by default) at /etc/bolt/config.yml

It uses the YAML markup language.

Key

Type

Default

Description

api_key

str

-

Required. API Token used to connect to Discord

name

str

Bolt

Some plugins may set the bot's name to this or refer to the bot with this

trigger

str

.

Trigger is used as the default prefix for invoking commands

log_level

str

INFO

Must be one of: DEBUG

INFO

WARNING

ERROR

CRITICAL

log_dir

str

/var/log/bolt

Directory to put the Bot logs. Will appear in JSON format

worker_threads

int

1

Amount of green threads for the bot to spin up. These are light threads, so numbers in the hundreds is okay

shard_total

int

1

shard_id

int

0

mongo_database_uri

uri

mongodb://localhost:27017

mongo_database_username

str

-

mongo_database_password

str

-

mongo_database_use_tls

boolean

-

webhook_enable

boolean

false

Turn on or off the Webhook feature. Some users may not want to use this disabling it prevents

webhook_port

int

8080

backdoor_enable

boolean

false

Turn on or off the Backdoor server. Allows user to inspect internal state of the bot for debugging

backdoor_host

ip_address

127.0.0.1

backdoor_port

int

5000