Files#
| File | What it holds |
|---|---|
.env |
Token, dashboard login details and other secrets, as NAME=value lines |
config/config.yml |
Settings of the bot itself, described below |
config/modules/<module>.yml |
The default settings of one module |
config/lang/<Language>.yml |
Optional texts for a few bot messages |
addons/ |
Optional extra modules. See Updating and extras |
data/ |
The database and files Talon writes. See Data and storage |
Talon creates config/config.yml and one file per module on the first start if they do not exist. The files are written so that only the owner can read them. Restart the bot after you change config.yml or .env.
config.yml#
| Key | Default | Meaning |
|---|---|---|
Token |
Empty | The bot token. Prefer TALON_TOKEN |
OwnerIds |
Empty list | Discord user IDs of the bot owners |
GuildIds |
Empty list | Register commands only in these servers. Empty registers them in every server |
Accent |
#3DD68C |
The accent color of the bot's cards and embeds |
Database |
data/talon.db |
Path of the database file, relative to the Talon folder |
Language |
en |
Name of the file in config/lang to load, without .yml |
Status.Type |
Watching |
The activity type of the bot status, for example Playing, Listening, Watching or Competing. A type Discord does not know falls back to Watching |
Status.Text |
{servers} servers |
The status text. {servers} and {members} are filled in. It refreshes every 10 minutes |
Dashboard.Enabled |
true |
Start the web dashboard |
Dashboard.Host |
127.0.0.1 |
The address the dashboard listens on. Use 0.0.0.0 to listen on every address |
Dashboard.Port |
3000 |
The port the dashboard listens on |
Dashboard.URL |
http://localhost:3000 |
The address people open the dashboard on. It is used to build the sign-in redirect |
Dashboard.ClientId |
Empty | The client ID of your application. When empty, Talon uses the ID of the bot |
Dashboard.ClientSecret |
Empty | The client secret of your application. Without it the dashboard shows a setup page |
Dashboard.SessionSecret |
Empty | Secret that signs the sign-in cookie. When empty, Talon creates one and stores it in the database |
Twitch.ClientId, Twitch.ClientSecret |
Empty | Keys for Twitch stream alerts |
Kick.ClientId, Kick.ClientSecret |
Empty | Keys for Kick stream alerts |
Music.Enabled |
true |
Turn music on or off for the whole bot. When off, /music answers: Music is turned off for this bot. |
Music.MaxQueue |
200 |
The most songs in one queue |
Music.MaxLengthMinutes |
180 |
The longest song Talon plays, in minutes |
Music.DefaultVolume |
60 |
The volume when a queue starts, in percent |
Prefix.Enabled |
false |
Also run commands from messages. See Prefix commands |
Prefix.Prefix |
! |
The prefix for those messages |
UpdateCheck |
true |
Check at startup whether a newer version is out |
Presences |
false |
Ask Discord for the Presence intent. Turn it on only after you turned on Presence Intent in the developer portal |
AI.ApiKey |
Empty | Anthropic API key for the AI assistant |
AI.Model |
claude-opus-5-5 |
The model the AI assistant uses |
Pterodactyl.Url, Pterodactyl.ApiKey |
Empty | The default Pterodactyl panel and client API key for every server |
Keys you leave out of the file use these defaults.
Environment variables#
Every variable below overrides the matching key in config.yml. Talon reads .env first, but a variable that already exists in the environment of the process wins over .env.
| Variable | Key |
|---|---|
TALON_TOKEN |
Token |
TALON_OWNER_IDS |
OwnerIds. Separate IDs with commas or spaces |
TALON_GUILD_IDS |
GuildIds. Separate IDs with commas or spaces |
TALON_DATABASE |
Database |
TALON_DASHBOARD_HOST |
Dashboard.Host |
TALON_DASHBOARD_PORT |
Dashboard.Port |
TALON_DASHBOARD_URL |
Dashboard.URL |
TALON_CLIENT_ID |
Dashboard.ClientId |
TALON_CLIENT_SECRET |
Dashboard.ClientSecret |
TALON_SESSION_SECRET |
Dashboard.SessionSecret |
TALON_AI_KEY |
AI.ApiKey |
TALON_PTERODACTYL_URL |
Pterodactyl.Url |
TALON_PTERODACTYL_KEY |
Pterodactyl.ApiKey |
TWITCH_CLIENT_ID, TWITCH_CLIENT_SECRET |
Twitch.ClientId, Twitch.ClientSecret |
KICK_CLIENT_ID, KICK_CLIENT_SECRET |
Kick.ClientId, Kick.ClientSecret |
The file .env.example lists the dashboard and owner variables with their defaults. Add the others when you need them.
Module settings#
Every module has its own file in config/modules, for example moderation.yml. The file lists every setting of the module with its default. Each module has an enabled setting. Some modules are off until you turn them on. See Modules.
There are two layers:
- The file sets the default for every server.
- Settings that you save in the dashboard are stored per server in the database and win over the file. Reset to defaults on a module page removes the saved values of that server.
Changes to a file in config/modules are picked up the moment you save it, without a restart. The console shows [config] reloaded <file>. A file with a wrong value is ignored and the console shows [config] <module>: <reason>. A file that is not valid YAML is also ignored: the console shows the file name and the error, and the module keeps its previous settings, or its defaults when this happens at startup.
Passwords and API keys that you save in a module, such as the RCON password, are never shown again in the dashboard. Leave the field empty to keep the saved value.
Prefix commands#
With Prefix.Enabled: true, a message that starts with the prefix runs the command with that name, for example !util ping. The subcommand and its options follow in the order of the slash command. Use quotes for a value with spaces and mention or paste the ID for members, roles and channels. Permissions are checked in the same way as for the slash command. Bot messages and direct messages are ignored.
Language file#
Talon is in English. A file config/lang/<Language>.yml with these keys changes the texts of the five messages below. Other texts of Talon are not read from the file. Use {name} style placeholders only where the default text has them.
| Key | Default text |
|---|---|
error.disabled |
This feature is turned off on this server. |
error.generic |
Something went wrong. Please try again. |
error.admin |
Only administrators can use this. |
error.owner |
Only the bot owner can use this. |
error.prefix |
Could not run that command. Check the arguments. |