mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user