Add Page Marker to Cmdlb

This commit is contained in:
Dragon Fire
2020-05-31 22:02:43 -04:00
parent 695e6aa15a
commit dc7923f0e9
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -23,9 +23,11 @@ module.exports = class CommandLeaderboardCommand extends Command {
}
run(msg, { page }) {
const lb = this.makeLeaderboard(page);
if (!lb.length) return msg.say(`Page ${page} does not exist (yet).`);
return msg.say(stripIndents`
__**Command Usage Leaderboard (as of Last Restart):**__
${this.makeLeaderboard(page).join('\n')}
__**Command Usage Leaderboard (Page ${page}):**__
${lb.join('\n')}
`);
}