mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Fix quiz-duel timeout
This commit is contained in:
@@ -80,12 +80,14 @@ module.exports = class QuizDuelCommand extends Command {
|
|||||||
});
|
});
|
||||||
if (!msgs.size) {
|
if (!msgs.size) {
|
||||||
await msg.say(`Sorry, time is up! It was ${question.correct}.`);
|
await msg.say(`Sorry, time is up! It was ${question.correct}.`);
|
||||||
if (lastTurnTimeout) {
|
if (!answered.length) {
|
||||||
winner = 'time';
|
if (lastTurnTimeout) {
|
||||||
break;
|
winner = 'time';
|
||||||
} else {
|
break;
|
||||||
lastTurnTimeout = true;
|
} else {
|
||||||
continue;
|
lastTurnTimeout = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const result = msgs.first();
|
const result = msgs.first();
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "114.8.3",
|
"version": "114.8.4",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user