This commit is contained in:
Dragon Fire
2021-01-22 17:13:09 -05:00
parent 892df1aea3
commit 62230d41e3
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -77,6 +77,7 @@ module.exports = class JengaCommand extends Command {
} else { } else {
await msg.say('Sorry, time is up!'); await msg.say('Sorry, time is up!');
lastTurnTimeout = true; lastTurnTimeout = true;
userTurn = !userTurn;
continue; continue;
} }
} }
+3 -1
View File
@@ -77,6 +77,7 @@ module.exports = class NimCommand extends Command {
} else { } else {
await msg.say('Sorry, time is up!'); await msg.say('Sorry, time is up!');
lastTurnTimeout = true; lastTurnTimeout = true;
userTurn = !userTurn;
continue; continue;
} }
} }
@@ -88,7 +89,7 @@ module.exports = class NimCommand extends Command {
} }
const row = board[picked - 1]; const row = board[picked - 1];
await msg.say(stripIndents` await msg.say(stripIndents`
How many ${objectEmoji} do you want to remove from row ${picked}? Type \`end\` to forefeit. ${user}, how many ${objectEmoji} do you want to remove from row ${picked}? Type \`end\` to forefeit.
If you want to go back, type \`back\`. If you want to go back, type \`back\`.
${nums[picked - 1]}${objectEmoji.repeat(row)} ${nums[picked - 1]}${objectEmoji.repeat(row)}
@@ -112,6 +113,7 @@ module.exports = class NimCommand extends Command {
} else { } else {
await msg.say('Sorry, time is up!'); await msg.say('Sorry, time is up!');
lastTurnTimeout = true; lastTurnTimeout = true;
userTurn = !userTurn;
continue; continue;
} }
} }