This commit is contained in:
Dragon Fire
2021-01-17 10:30:19 -05:00
parent e82b6d3887
commit 6e0b33a922
+2 -2
View File
@@ -74,9 +74,9 @@ module.exports = class ConnectFourCommand extends Command {
);
const filter = res => {
if (res.author.id !== opponent.id) return false;
const hasEmoji = new RegExp(`^(?:${emojiRegex().source})$`).test(value);
const hasEmoji = new RegExp(`^(?:${emojiRegex().source})$`).test(res.content);
return hasEmoji || available.includes(res.content.toLowerCase());
}
};
const p2Color = await msg.channel.awaitMessages(filter, {
max: 1,
time: 30000