Browse Source

scores all

isundil 6 years ago
parent
commit
0c84818901
1 changed files with 1 additions and 1 deletions
  1. 1 1
      quizz.js

+ 1 - 1
quizz.js

@@ -509,7 +509,7 @@ QuizzBot.prototype.onMessageInternal = function(username, user, msg) {
             this.bot.sendMsg(this.room, "Pas de points pour le moment");
             return;
         }
-        scores = scores.sort((a, b) => b.score - a.score).slice(0, 10);
+        scores = scores.sort((a, b) => b.score - a.score);
         this.bot.sendNotice(username, scores.map(i => i.name+":"+i.score).join(", "));
     }
     else if (lmsg.startsWith("!score")) {