This commit is contained in:
Dragon Fire
2021-01-09 12:53:37 -05:00
parent e21543a3df
commit 2a1944d49f
+2 -2
View File
@@ -94,8 +94,8 @@ module.exports = class ConnectFourCommand extends Command {
if (res.author.id !== user.id) return false;
const choice = res.content;
if (choice.toLowerCase() === 'end') return true;
const i = Number.parseInt(choice, 10) - 1;
return board[colLevels[i]] && board[colLevels[i]][i] !== undefined;
const j = Number.parseInt(choice, 10) - 1;
return board[colLevels[j]] && board[colLevels[j]][j] !== undefined;
};
const turn = await msg.channel.awaitMessages(pickFilter, {
max: 1,