isundil 6 anni fa
parent
commit
0c84818901
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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");
             this.bot.sendMsg(this.room, "Pas de points pour le moment");
             return;
             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(", "));
         this.bot.sendNotice(username, scores.map(i => i.name+":"+i.score).join(", "));
     }
     }
     else if (lmsg.startsWith("!score")) {
     else if (lmsg.startsWith("!score")) {