Drako Development
  • πŸ€–Our Bots
    • Drako Bot
      • Getting Started
      • Addon System
      • Twitch Announcements
      • Ticket System
        • Getting Started
        • Dashboard
          • Dashboard Addons
          • Nginx Configuration
        • Priority System
        • Working Hours
      • Reaction Roles
      • Music
      • Custom Commands
  • πŸ‘ΎMisc
    • MongoDB Setup
    • Premium Addons
      • Product Panel
      • Sticky Messages
      • Application System
  • πŸ“°Terms and Conditions
    • Terms and Conditions
    • Privacy Policy
Powered by GitBook
On this page
  • Basic Configuration
  • Examples
  • Additional Notes
  1. Our Bots
  2. Drako Bot

Custom Commands

Custom commands allow you to create personalized commands that users can trigger with a prefix. You can configure these commands to send either text messages or embeds with buttons.

Basic Configuration

In your config.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 rich embeds with detailed descriptions and action buttons for quick navigation.

CustomCommands:
  mongo:
    type: "EMBED"
    Embed:
      Title: "πŸ“Š MongoDB Setup Guide"
      Description:
        - "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."
      Footer:
        Text: "Drako Development | MongoDB Setup"
        Icon: "https://i.imgur.com/w5XxKpc.png"
      Color: "#1769FF"
    Roles:
      Whitelist: ["1272331356445347840", "1196187304008622101"]
    Options:
      DeleteTriggerMessage: false
      ReplyToUser: false
    Buttons:
      - Type: "LINK"
        Name: "MongoDB Setup"
        Emoji: "πŸ“‘"
        Link: "https://docs.drakodevelopment.net/misc/mongodb-setup"
      - Type: "LINK"
        Name: "Wiki"
        Emoji: "πŸ“•"
        Link: "https://docs.drakodevelopment.net/"

Welcome Command

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

CustomCommands:
  welcome:
    type: "EMBED"
    Embed:
      Title: "πŸŽ‰ Welcome to Drako Development!"
      Description:
        - "Hello {userMention}! We're glad you've joined our community of {memberCount} developers."
        - "Here's a quick guide to get you started:"
      Fields:
        - Name: "πŸš€ Quick Start"
          Value: "β€’ Introduce yourself in #introductions\nβ€’ Set roles in #role-assignment\nβ€’ Check #announcements for updates"
          Inline: false
        - Name: "πŸ†˜ Need Help?"
          Value: "Visit #support or use `/ticket` for assistance."
          Inline: false
      Footer:
        Text: "Joined on {longTime}"
        Icon: "https://i.imgur.com/w5XxKpc.png"
      Author:
        Text: "Drako Development Team"
        Icon: "https://i.imgur.com/w5XxKpc.png"
      Color: "#1769FF"
    Roles:
      Whitelist: []
    Options:
      DeleteTriggerMessage: true
      ReplyToUser: true
    Buttons:
      - Type: "LINK"
        Name: "Documentation"
        Emoji: "πŸ“š"
        Link: "https://docs.drakodevelopment.net"
      - Type: "REPLY"
        Name: "Quick Tour"
        Emoji: "πŸ—ΊοΈ"
        Style: "Primary"
        Reply:
          Type: "TEXT"
          Ephemeral: true
          Embed:
            Title: "πŸ—ΊοΈ Quick Server Tour"
            Description:
              - "πŸ“’ #announcements - Latest news"
              - "πŸ’‘ #ideas-and-feedback - Share suggestions"
              - "πŸ€– #bot-commands - Test our bots"
              - "πŸŽ“ #tutorials - Learn new skills"
            Footer:
              Text: "Enjoy your stay at Drako Development!"
              Icon: "https://i.imgur.com/w5XxKpc.png"
            Author:
              Text: "Server Guide"
              Icon: "https://i.imgur.com/w5XxKpc.png"
            Color: "#4CAF50"
            Image: "https://i.imgur.com/w5XxKpc.png"
            Thumbnail: "https://i.imgur.com/w5XxKpc.png"
            Timestamp: true
            Fields:
              - Name: "Important Links"
                Value: "Check out our [website](https://docs.drakodevelopment.net/)"
                Inline: true
              - Name: "Support"
                Value: "Need help? Create a ticket!"
                Inline: true

Additional Notes

  • Available Placeholders:

    {guildName}, {guildId}, {userName}, {userId}, {userMention}, {channelName}, {channelId}, {channelMention}, {commandName}, {longTime}, {shortTime}, {memberCount}
PreviousMusicNextMongoDB Setup

Last updated 4 months ago

πŸ€–