$divide
Divides the given numbers you supply. More than 2 fields may be present for a more in-depth division.

FUNCTION USAGE:

  • $divide[a;b]
  • $divide[a;b;c]
  • $divide[a;b;c;d;etc...]

Properties:

a - 1st NUMBER for the bot to divide the 2nd number into. b - 2nd NUMBER for the bot to divide into the 1st number.
Example 1 - This will divide 10 and 2 for you, the answer will equal 5
1
bot.Command({
2
name: "divide",
3
code: `
4
$divide[10;2]
5
`
6
})
Copied!
Example 2 - This will divide any 2 numbers you give it.
1
bot.Command({
2
name: "divide",
3
code: `
4
You asked: $message[1]/$message[2]
5
Answer: $divide[$message[1];$message[2]]
6
`
7
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: