mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 23:32:12 +02:00
Format numbers in leaderboard
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const { formatNumber } = require('../../util/Util');
|
||||
|
||||
module.exports = class CommandLeaderboardCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -46,7 +47,7 @@ module.exports = class CommandLeaderboardCommand extends Command {
|
||||
positionsMoved = 1;
|
||||
}
|
||||
previousPts = command.uses;
|
||||
return `**${i}.** ${command.name} (${command.uses} Use${command.uses === 1 ? '' : 's'})`;
|
||||
return `**${i}.** ${command.name} (${formatNumber(command.uses)} Use${command.uses === 1 ? '' : 's'})`;
|
||||
})
|
||||
.slice((page - 1) * 10, page * 10);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "119.6.0",
|
||||
"version": "119.6.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user