From 0c4bfe98fba9f00c170841c4d53e87f99225df88 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 8 May 2020 11:56:28 -0400 Subject: [PATCH] Fix quiz-duel timeout --- commands/games-mp/quiz-duel.js | 14 ++++++++------ package.json | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/commands/games-mp/quiz-duel.js b/commands/games-mp/quiz-duel.js index 5a0c10a7..8e6926d8 100644 --- a/commands/games-mp/quiz-duel.js +++ b/commands/games-mp/quiz-duel.js @@ -80,12 +80,14 @@ module.exports = class QuizDuelCommand extends Command { }); if (!msgs.size) { await msg.say(`Sorry, time is up! It was ${question.correct}.`); - if (lastTurnTimeout) { - winner = 'time'; - break; - } else { - lastTurnTimeout = true; - continue; + if (!answered.length) { + if (lastTurnTimeout) { + winner = 'time'; + break; + } else { + lastTurnTimeout = true; + continue; + } } } const result = msgs.first(); diff --git a/package.json b/package.json index 07b745d3..81151b6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "114.8.3", + "version": "114.8.4", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {