From 783d34f688f67cfb3715841c4092ffae8d8fa2fd Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 21 Apr 2020 23:01:39 -0400 Subject: [PATCH] React on answer in lie-swatter --- commands/games-mp/lie-swatter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/games-mp/lie-swatter.js b/commands/games-mp/lie-swatter.js index cbca0fdb..870666d1 100644 --- a/commands/games-mp/lie-swatter.js +++ b/commands/games-mp/lie-swatter.js @@ -69,7 +69,11 @@ module.exports = class LieSwatterCommand extends Command { const filter = res => { if (!awaitedPlayers.includes(res.author.id)) return false; const answer = res.content.toLowerCase(); - return trueOptions.includes(answer) || falseOptions.includes(answer); + if (trueOptions.includes(answer) || falseOptions.includes(answer)) { + res.react(SUCCESS_EMOJI_ID || '✅').catch(() => null); + return true; + }; + return false; }; const msgs = await msg.channel.awaitMessages(filter, { max: pts.size,