mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 00:08:06 +02:00
Fix
This commit is contained in:
@@ -63,7 +63,7 @@ module.exports = class ConnectFourCommand extends Command {
|
|||||||
if (choice.toLowerCase() === 'end') return true;
|
if (choice.toLowerCase() === 'end') return true;
|
||||||
const i = Number.parseInt(choice, 10) - 1;
|
const i = Number.parseInt(choice, 10) - 1;
|
||||||
if (!board[colLevels[i]]) return false;
|
if (!board[colLevels[i]]) return false;
|
||||||
if (!board[colLevels[i]][i]) return false;
|
if (board[colLevels[i]][i] === undefined) return false;
|
||||||
return res.author.id === user.id;
|
return res.author.id === user.id;
|
||||||
};
|
};
|
||||||
const turn = await msg.channel.awaitMessages(filter, {
|
const turn = await msg.channel.awaitMessages(filter, {
|
||||||
|
|||||||
Reference in New Issue
Block a user