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:
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]
$interactionReply- FunctionHello there- Text
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]
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]||]
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]
- - ID of channel you want to retrieve information from.Optional ArgumentDefault:
$channelIDChannel ID - - ID of the message you want to retrieve information from.Optional ArgumentDefault:
$messageIDMessage ID - - What kind of information you want to retrieve.Required ArgumentOption
- - Additional argument. Some options need these to work properly.Optional ArgumentDefault: NoneAdditional 1
- - Additional argument. Some options need these to work properly.Optional ArgumentDefault: NoneAdditional 2
Example
Example of using $msg with multiple arguments
