$sum
Adds the numbers in each of the fields. Any field left blank resembles `0`.

FUNCTION USAGE

  • $sum[value1;value2]
  • $sum[value1;value2;value3;etc...]

Properties:

value1 - The first number to add. value2 - The second number to add. etc - More numbers to add. (Optional).

Example:

1
bot.Command({
2
name: "sum",
3
code: `
4
The sum is... $sum[$message[1];$message[2]]
5
`
6
})
Copied!
Last modified 6mo ago
Copy link
Contents
Properties: