This commit is contained in:
Dragon Fire
2020-03-26 00:37:54 -04:00
parent b0b092e129
commit cc1a4aeb4b
+1 -1
View File
@@ -37,7 +37,7 @@ module.exports = class PickANumberCommand extends Command {
}
}
await msg.say(`${msg.author}, pick a number from 1 to 10.`);
const userTurn = true;
let userTurn = true;
let player1Pick;
const filter = res => {
if (res.author.id !== (userTurn ? msg.author.id : opponent.id)) return false;