Custom Commands
Search…
Begin
really important page please read it ,else you would face to problems

If you didn't create your first Command, follow this:

Code Syntax

The Syntax has been inspired from BDFD originally.
We are not affiliated with BDFD. We just use their syntax

Syntax

Functions returns Value or execute something. There are two type of functions:
    Functions with parameter ($giveRoles[$authorID;080887889])
    Functions without parameter($channelID)
What is a parameter? Parameters are Value ,which a Function needs. To understand it let us see the usage of $giveRoles[authorid;roleid] 1.Parameter is authorID. The authorID is the id of a User.To get the authorid we will use another function named $authorID, which returns the id of the executor
2.Parameter is the roleid.To get the roleid,you can copy the id of the role you want to give or use an anither function named $roleID[rolename]
    Every Function starts with a $
    After it the function name comes like giveroles
    If the Function needs parameters you open it with [ ]
    Every Parameter gets separated with ;
So your result would be $giveRoles[authorid;roleid]
Functions with many Parameters! Did you know that some functions can have more then provided parameters for example $randomText[text1;text2] You can add more then 2 text just split them up with ; like $randomText[text1;text2;text3;text4] and so on **
Function names are case insensitive ! That's why $authorID and $authorid would return the same result.

Example:

1
The year Today is: $year
Copied!
This would just replace $year and output The year Today is: 2021.

Example2:

1
Hello my Name is <@$authorID>
Copied!
This would just output : Hello my Name is <@rake>

Example3:

1
$giveRoles[$auhtorID;333333333]
Copied!
This would return nothing since it executes a functions. The Bot would give the role to the Executor.

Example: Multiplie line code

1
$let[bal;0]
2
Current bal: $bal
3
$let[bal;10]
4
After change: $bal
Copied!
Output: Current bal: 0 After change:10 The code shows that it gets executed from top to bottom. The function $let defines a temp var ,which you retrive with $bal
Last modified 2mo ago
Copy link