From 2085b9ace5ca04cc32be8a8e08451e222d5a0666 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 3 Apr 2021 13:14:26 -0500 Subject: [PATCH] Use equals instead of greater than to prevent the message from being sent multiple times --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 433d157..7ec872d 100644 --- a/index.js +++ b/index.js @@ -686,7 +686,7 @@ client.on('messageReactionAdd', (messageReaction, user) => { } if (result.kulboard_id) { kulboardChannel = result.kulboard_id; - if (messageReaction.message.guild.channels.cache.get(kulboardChannel) && messageReaction.emoji.name === "😎" && messageReaction.count > 3) { + if (messageReaction.message.guild.channels.cache.get(kulboardChannel) && messageReaction.emoji.name === "😎" && messageReaction.count = 4) { messageReaction.message.guild.channels.cache.get(kulboardChannel).send(kulboardEmbed).catch(console.error); } }