Useful Functions
here you will find functions that you can't sort to category and use ful functions to

$executionTime (currently bugged)

returns the time the bot needed to execute the code

$error

this function returns erro which are caused from the interpreter .If perms are missing or others(Useful for debugging)

$suppressErrors[error msg (optional)]

this function binds all error and sends a custom one you choose

$wait[time(s/m/h/d)]

this executes a delay and wait till it ends. The delay can stop if the bot crashes :c

$creationDate[userid/guildid/roleid;time/ms/date]

this function returns the creationDate of the chosen id and in the format you choose

$uri[encode/decode;text]

encodes/decodes a uri to pass a proper query for a search request Like 'Hello World' would be encoded 'Hello%20World'

$forEach

Will loop over a list and every loop it will take an item and assign in inside varname accessible by $get[varname]
Usage: $forEach[varname;LIST (ex: mido rake azz);Seperator (Optional, default is space)] SOME CODE HERE... $endForEach
Example:
1
$forEach[name;mido rake azz blek felix]
2
Hello $get[name]
3
$endForEach
4
5
Output:
6
Hello mido
7
Hello rake
8
Hello azz
9
Hello blek
10
Hello felix
Copied!

$seq[Start;End;Step (optional, default=1)]

Usage in $forEach
1
$forEach[num;$seq[0;5]]
2
Number $num
3
$endForEach
Copied!

$function

Create a user-defined function that can be called by $callFunction or $functionName (see !!func $callFunction) Note: function name cant start with number, and must be within [A-Z or a-z or _ or 0-9]
Usage
1
$function[Function name;Param 1 (optional);Param 2...(optional)]
2
CODE...
3
$endFunction
4
5
Example Of Printing Hello To a user:
6
$function[printHello;user]
7
Hello $user
8
$endFunction
9
$printHello[Rake]
10
11
Output: Hello Rake
12
13
Same Example but with $return:
14
$function[printHello;user]
15
$return[Hello $user]
16
[This message wont be returned]
17
$endFunction
18
$printHello[Rake]
19
20
Output: Hello Rake
Copied!

$setTimeout[Time;Command Name (optional, default=undefined)\;command author (optional, default=$authorID)]

Usage:
1
$setTimeout[2h;this is a fantastic command name]
2
This code will get executed after 2 hours \(check the syntax tab for info about time formats)
3
$endTimeout
Copied!
****
Last modified 2mo ago