$customCommand
Add or remove custom commands to/from the server. If removing a custom command, the 3rd field may be empty.

FUNCTION USAGE

    $customCommand[add;name;code]
    $customCommand[remove;name]

Properties:

add - Adds the custom command to the database. remove - Removes the custom command from the database. name - The name of the custom command. code - The code of the custom command(only if adding a command)
Example 1: To add a custom command
1
bot.Command({
2
name: "customcmd",
3
code: `
4
Added the custom command **test**
5
6
$customCommand[add;test;$message[]]
7
`
8
})
Copied!
Example 2: To remove a custom command
1
bot.Command({
2
name: "customcmd",
3
code: `
4
Removed the custom command **test**
5
6
$customCommand[remove;test]
7
`
8
})
Copied!
Example 3: Diverse all-in-one example (not for beginners)
1
bot.Command({
2
name: "customcmd",
3
code: `
4
**$replaceText[$replaceText[$message[1];add;added];remove;removed]** the custom command **$message[2]**
5
6
$customCommand[$message[1];$message[2];$replaceText[$replaceText[$message[];$message[1];];$message[2];]]
7
`
8
})
Copied!
Examples
Custom command
Custom command usages
Responses
1
?customcmd <@$authorID> you're great!
?test
@Speshul you're great!
2
?customcmd
This will remove the custom command
Removed the custom command test
3 (add)
?customcmd add test <@$authorID> you're great!
?test
@Speshul you're great!
3 (remove)
?customcmd remove test
This will remove the custom command
Removed the custom command test
Last modified 4mo ago
Copy link
Contents
Properties: