diff --git a/src/app.js b/src/app.js index 28a80b6..1b657fd 100644 --- a/src/app.js +++ b/src/app.js @@ -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) {