v5.0.0
$abbreviate
This function abbreviates large numbers

Usage

This function has 1 field
  1. 1.
    Number (Required)
Raw Usage: $abbreviate[number]

Options

  • Number - The number the function would abbreviate

Abbreviations

  • k - thousands
  • m - millions
  • b - billions
  • t - trillions
1
bot.command({
2
name: "abbr",
3
code: `
4
$abbreviate[5000]
5
`
6
//Returns: 5k
7
})
8
​
9
//or specified number
10
​
11
bot.command({
12
name: "abbr",
13
code: `
14
$abbreviate[$message]
15
`
16
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub