Docs/Plugins

Command aliases plugin

Create shortcuts that run other slash commands with preset options. Aliases can also be triggered by sending the alias name as a plain message.

#Configuration

yaml
plugins:
  command_aliases:
    enabled: true
    config:
      message_triggers: true
    overrides:
      - level: ">=50"
        config:
          can_list: true
          can_run: true
      - level: ">=100"
        config:
          can_create: true
          can_delete: true
FieldDescription
message_triggersWhen true, sending a message that exactly matches an alias name runs it (default: true)

#Commands

CommandPermissionDescription
/alias createcan_createCreate an alias for a slash command (level ≥100)
/alias deletecan_deleteDelete an alias by name (level ≥100)
/alias listcan_listList command aliases
/alias runcan_runRun an alias by name

#Usage

Create a help shortcut:

code
/alias create name:test command:help

Then either run /alias run test or send a message containing only test (if message_triggers is enabled).

#Requirements

  • Aliases are stored per server in the Dreamliner database.
  • The target command must exist and the user must have permission to run it.
  • Preset options are stored as a JSON object matching the target command's options.