This commit is contained in:
Dragon Fire
2021-01-09 13:46:57 -05:00
parent 81d8eca4d3
commit 35efe22246
+3 -3
View File
@@ -58,9 +58,9 @@ module.exports = class TicTacToeCommand extends Command {
`);
const filter = res => {
if (res.author.id !== user.id) return false;
const choice = res.content;
if (choice.toLowerCase() === 'end') return true;
return sides.includes(choice) && !taken.includes(choice);
const pick = res.content;
if (pick.toLowerCase() === 'end') return true;
return sides.includes(pick) && !taken.includes(pick);
};
const turn = await msg.channel.awaitMessages(filter, {
max: 1,