Functionalities
Other
$ordinal
Adds `st` or `nd` or `rd` or `th` respectively to the end of a number. If it's not a number, bot will return `undefined`.

FUNCTION USAGE

  • $ordinal[number]

Properties:

number - The number to add an ordinal suffix to.
Example 1: Output = 1st
1
bot.Command({
2
name: "test",
3
code: `
4
$ordinal[1]
5
`})
Copied!
Example 2: Output = 2nd
1
bot.Command({
2
name: "test",
3
code: `
4
$ordinal[2]
5
`})
Copied!
Example 3: Output = 3rd
1
bot.Command({
2
name: "test",
3
code: `
4
$ordinal[3]
5
`})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: