-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Command Configuration
_Axieum edited this page Nov 20, 2019
·
1 revision
To proxy custom commands through Discord, simply add [[commands]] blocks to the configuration file as shown below.
#General configuration
[general]
[general.commands]
#Discord command prefix
prefix = "!"
#Discord command unauthorised message
#Allowed Values: MENTION, COMMAND, ARGS
unauthorised = "**{{MENTION}}**, you were unauthorised to perform this action :no_good:"
#Command configurations
[[commands]]
#Primary name to execute on
name = "whitelist"
#Description of command
description = "Whitelist management"
#Command to execute on the Minecraft server
#Allowed Values: {n} for nth argument, {} for all
command = "whitelist {*}"
#Aliases accepted alongside the name
aliases = ["enroll", "wl"]
#Is this command enabled for use?
enabled = true
#Should this command NOT send output/feedback?
quiet = false
#Channels this command can be executed from (blank for all)
channels = [395351376929119481]
#Permissions required to execute (blank for everyone)
#Allowed Values: user:ID, user:Username#Tag, role:ID, Username#Tag
permissions = ["role:251653132447129601", "user:_Axieum#1337", "JohnDoe#8008"]
[[commands]]
#Primary name to execute on
name = "list"
#Description of command
description = "List all online players"
#Command to execute on the Minecraft server
#Allowed Values: {n} for nth argument, {*} for all
command = "list"
#Aliases accepted alongside the name
aliases = ["online"]
#Is this command enabled for use?
enabled = true
#Should this command NOT send output/feedback?
quiet = false
#Channels this command can be executed from (blank for all)
channels = []
#Permissions required to execute (blank for everyone)
#Allowed Values: user:ID, user:Username#Tag, role:ID, Username#Tag
permissions = []The above configuration has the following effect:
