소스 검색

scores all

isundil 6 년 전
부모
커밋
0c84818901
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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")) {