$math
Calculates a math expression.
Usage
$math[expression]Param
Description
Type
Required
Examples
bot.commands.add({
type: "example",
name: "example",
code: `$math[1+1]` //Returns 1
})Last updated
Was this helpful?
Calculates a math expression.
$math[expression]bot.commands.add({
type: "example",
name: "example",
code: `$math[1+1]` //Returns 1
})Last updated
Was this helpful?
Was this helpful?
bot.commands.add({
type: "basicCommand",
name: "example",
code: `$math[10-5]` //Returns 5
})bot.commands.add({
type: "basicCommand",
name: "example",
code: `$math[2*2]` //Returns 4
})bot.commands.add({
type: "basicCommand",
name: "example",
code: `$math[32/4]` //Returns 8
})bot.commands.add({
type: "basicCommand",
name: "example",
code: `$math[5-((30/2)*2)+10]` //Returns -15
})