From fd0754ba4352d1fde191a02c6a96462959749976 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 5 Apr 2021 09:54:19 -0500 Subject: [PATCH] Make sure reaction count is within a limit --- bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 6c14e43..4cafffa 100644 --- a/bot.js +++ b/bot.js @@ -802,7 +802,7 @@ client.on('messageReactionAdd', (messageReaction, user) => { let numEmoji; let coolness; message.reactions.cache.get(emojiID) ? numEmoji = message.reactions.cache.get(emojiID).count : numEmoji = message.reactions.cache.get(emoji).count; - if (numEmoji > 6) { + if (numEmoji > 6 && numEmoji <= 9) { coolness = '<:cool_finger_guns:828632824512512030> *Very* Kül Message' } else if (numEmoji > 9) { coolness = ' **SUPA** Kül Message' @@ -889,7 +889,7 @@ client.on('messageReactionRemove', (messageReaction, user) => { let numEmoji; let coolness; message.reactions.cache.get(emojiID) ? numEmoji = message.reactions.cache.get(emojiID).count : numEmoji = message.reactions.cache.get(emoji).count; - if (numEmoji > 6) { + if (numEmoji > 6 && numEmoji <= 9) { coolness = '<:cool_finger_guns:828632824512512030> *Very* Kül Message' } else if (numEmoji > 9) { coolness = ' **SUPA** Kül Message'