githubEdit

square-terminalCommands

circle-exclamation

All commands that the bot can execute are defined in this global config. They can be changed to whatever the user likes, as long as the id's stay the same. This config also allows for the creation of entirely new commands.

{
  "commands": [
    {
      "active": true,
      "inherit": "",
      "name": "",
      "description": "",
      "default_permissions": [],
      "options": [
        {
          "type": "",
          "name": "",
          "description": "",
          "isRequired": true,
          "choices": [
            {
              "name": "",
              "id": ""
            }
          ]
        }
      ],
      "subcommands": [
        {
          "inherit": "",
          "name": "",
          "description": "",
          "options": [
            {
              "inherit": "",
              "name": "",
              "description": "",
              "options": [
                {
                  "type": "",
                  "name": "",
                  "description": "",
                  "isRequired": true
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
chevron-rightActivehashtag

Determines if the command is active

chevron-rightInherithashtag

The inheritance is an id that tells the bot which inner functions to run when it receives a command. This is determined by loading the inheritance id every time a command is executed and searching for the function that it should execute. Available inheritance id's are:

commands.help.default, commands.template.default, commands.verify.default, commands.notice_of_departure.default, commands.regulars.default, commands.settings.default, commands.application.default, status_commands.status.default, status_commands.playerlist.default, status_commands.template.default

chevron-rightNamehashtag
circle-exclamation

The name of the command that will be displayed to users

chevron-rightDescriptionhashtag
circle-exclamation

The description of the command that will be shown to users

chevron-rightDefault permissionshashtag

The permissions that are needed to run the command. Available permissions can be found in this javadocsarrow-up-right

chevron-rightOptionshashtag

Type - The type of the option. Available types can be found in this javadocarrow-up-right

Name - The name of the option that will be shown to users

Description - The description of the option that will be shown to users

Is Required - Defines if the option is required to run the command

Choices - Choices

chevron-rightChoiceshashtag

Name - The name of the choice that will be shown to users

Id - The id of the choice

chevron-rightSubcommandshashtag
circle-exclamation

Inherit - The inheritance id of the subcommand.

Name - The name of the subcommand that will be shown to users

Description - The description of the subcommand that will be shown to users

Options - Options

Last updated