Custom Command
Guide

Syntax

Learning about the syntax used by this bot is necessary to understand how to write commands.

Syntax Overview

The bot's code uses two types:

  1. Text
  2. Function

What is Text

Anything in the code that isn't a function is considered text.

Example

Hello $username, how are you?
  • Hello - Text
  • $username - Function
  • , how are you? - Text
$interactionReply[Hello there]

What is a Function

A function is a special instruction that begins with a dollar sign ($), for example $username.
All arguments are kept inside of square brackets ([HERE]).
Function names are case insensitive.

How to execute functions

All functions can be either executed by writing a command in the dashboard, or using the built in !!exec command.

Example

Function case insensitivity

$math[1+1] = $mAtH[1+1] = $MATH[1+1]
Member
9/5/2026
!!exec $math[1+1] = $mAtH[1+1] = $MATH[1+1]
Custom Command
APP
9/5/2026
2 = 2 = 2

Function doesn't have to be closed at the same line where it was opened:

$title[Math question]
$description[What is 2^11?
Click to reveal: ||$math[2^11]||]
Member
9/5/2026

!!exec $title[Math question] $description[What is 2^11? Click to reveal: ||$math[2^11]||]

Custom Command
APP
9/5/2026
Math question

What is 2^11? Click to reveal: 2048

Function Actions

Functions performs one of these three actions:

  • Replace with a value: The function is replaced by a specific value.
  • Perform an action: The function executes a task.
  • Both: The function executes a task and then is replaced by a specific value.

Multiple Arguments

Some functions require multiple arguments. Arguments can also be required or optional.

$msg[Channel ID;Message ID;Option;Additional 1;Additional 2]
  • Optional Argument
    Default: $channelID
    Tooltip
    Channel ID
    - ID of channel you want to retrieve information from.
  • Optional Argument
    Default: $messageID
    Tooltip
    Message ID
    - ID of the message you want to retrieve information from.
  • Required Argument
    Tooltip
    Option
    - What kind of information you want to retrieve.
  • Optional Argument
    Default: None
    Tooltip
    Additional 1
    - Additional argument. Some options need these to work properly.
  • Optional Argument
    Default: None
    Tooltip
    Additional 2
    - Additional argument. Some options need these to work properly.

Example

Example of using $msg with multiple arguments

Member
9/5/2026

!!exec Message content: $msg[$channelID;$messageID;content]

Custom Command
APP
9/5/2026

Message content: !!exec Message content: $msg[$channelID;$messageID;content]

On this page