diff --git a/commands/games-mp/connect-four.js b/commands/games-mp/connect-four.js index 097919e3..5f6d08ba 100644 --- a/commands/games-mp/connect-four.js +++ b/commands/games-mp/connect-four.js @@ -39,6 +39,7 @@ module.exports = class ConnectFourCommand extends Command { if (!hasEmoji && !colors[color.toLowerCase()]) { return `Please enter an emoji or one of the following: ${list(Object.keys(colors), 'or')}.`; } + if (color === blankEmoji) return 'You cannot use this emoji.'; return true; }, parse: color => colors[color.toLowerCase()] || color @@ -74,6 +75,7 @@ module.exports = class ConnectFourCommand extends Command { ); const filter = res => { if (res.author.id !== opponent.id) return false; + if (res.content === blankEmoji) return false; const hasEmoji = new RegExp(`^(?:${emojiRegex().source})$`).test(res.content); return hasEmoji || available.includes(res.content.toLowerCase()); }; diff --git a/package.json b/package.json index 50632846..b53dff13 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "126.6.4", + "version": "126.6.5", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {