Format numbers in leaderboard

This commit is contained in:
Dragon Fire
2020-07-04 11:18:02 -04:00
parent dd9ad42db6
commit 41ab3edf13
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.6.0",
"version": "119.6.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {