For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom Commands

Custom commands allow you to create personalized commands that users can trigger with a prefix. You can configure these commands to send Components v2 messages with buttons.

Basic Configuration

In config/modules/custom-commands.yml, custom commands are configured under the CustomCommands section. Here are the two key settings:

CommandsEnabled: true
CommandsPrefix: '!'

Examples

MongoDB Setup Command

This command provides users with links and information for setting up MongoDB. It includes Components v2 messages with detailed descriptions and action buttons for quick navigation.

CustomCommands:
  mongo:
    Roles:
      Whitelist:
        - '1272331356445347840'
        - '1196187304008622101'
    Options:
      DeleteTriggerMessage: false
      ReplyToUser: false
    Buttons:
      - Type: LINK
        Name: MongoDB Setup
        Emoji: πŸ“‘
        Link: https://docs.drakodevelopment.net/getting-started/mongodb-setup
      - Type: LINK
        Name: Wiki
        Emoji: πŸ“•
        Link: https://docs.drakodevelopment.net/
    ComponentsV2:
      Components:
        - Type: container
          AccentColor: '#1769FF'
          Components:
            - Type: text_display
              Content: |-
                ## πŸ“Š MongoDB Setup Guide
                To get started with MongoDB, follow the detailed guide provided below. This guide will assist you in setting up MongoDB efficiently and correctly.

                Need further assistance? Don't hesitate to open a support ticket.
            - Type: text_display
              Content: -# Drako Development | MongoDB Setup

Welcome Command

A welcoming command that dynamically greets new users, provides a quick start guide, and includes interactive buttons for further exploration.

Additional Notes

Available Placeholders

Last updated