Capping leaderboard number.

This commit is contained in:
ThePendulum 2021-11-06 01:38:06 +01:00
parent 06eb743e32
commit c3639b15e6
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ function getLeaderboard(game, { user, room }) {
.slice(-10)
.join(', ');
game.sendMessage(`The top ${Math.min(Object.keys(curatedLeaderboard).length, 10)} *${game.name}* players are: ${curatedLeaderboard}`, room.id);
game.sendMessage(`The top ${Math.min(Object.keys(leaderboard).length, 10)} *${game.name}* players are: ${curatedLeaderboard}`, room.id);
}
function onConnect(data, bot) {