This commit is contained in:
Dragon Fire
2021-01-19 18:17:36 -05:00
parent daef1e582f
commit 3b1fed8f59
+2 -2
View File
@@ -90,10 +90,10 @@ module.exports = class JengaCommand extends Command {
const fell = Math.floor(Math.random() * ((board.length + 1) - i)); const fell = Math.floor(Math.random() * ((board.length + 1) - i));
if (!fell) { if (!fell) {
winner = userTurn ? opponent : msg.author; winner = userTurn ? opponent : msg.author;
await msg.say('And the tower topples!'); await msg.say(`${opponent.bot && !userTurn ? `I pick ${i + 1}, a` : 'A'}nd the tower topples!`);
break; break;
} }
await msg.say('Thankfully, the tower stands.'); await msg.say(`${opponent.bot && !userTurn ? `I pick ${i + 1}. ` : ''}Thankfully, the tower stands.`);
board.shift(); board.shift();
userTurn = !userTurn; userTurn = !userTurn;
} }