Console Channel Manifest
Configure Discord console channel
Manifest entry for console command execution from Discord. Allows executing server commands from a Discord channel.
Campos
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
enabled | Boolean | true | Whether console channel is enabled |
discordChannelId | String | — | Discord channel ID for console commands |
allowCommands | Boolean | true | Whether to allow command execution from Discord |
commandList | List<String> | — | Commands that are allowed/blocked (depends on blacklistIsWhitelist) |
blacklistIsWhitelist | Boolean | false | If true, commandList acts as whitelist. If false, acts as blacklist |
blockBots | Boolean | true | Whether to block commands from bots |
allowedRoles | List<String> | empty | Discord role IDs that are allowed to execute commands (empty = everyone) |
logCommands | Boolean | true | Whether to log command executions to file |
logFilePath | String | logs/discord-console.log | Path to command log file (relative to server root) |
How to use it
Anything a member types in the channel discordChannelId is run as a console command, so protect this channel. The bot from the Discord Link Manifest is required. Despite what the name may suggest, the entry does not stream console output to Discord.
aviso
Restrict allowedRoles (empty means everyone who can write in the channel). Prefer blacklistIsWhitelist on, with only the commands you want in commandList. The check compares the first word of the message, so a blacklist cannot cover every way of writing a command.
- With the default blacklist mode, the commands in
commandListare refused (stop,restartandreloadby default). In whitelist mode, only they are allowed. blockBotsignores messages from other bots.- With
logCommands, each command is appended tologFilePathwith the time, the Discord ID and the name. - The bot reacts with a check on success, a cross on failure or missing role, and a no-entry sign on a refused command.