From b2fc18c946d587d03b7d1221c489ed8717b0f26b Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sat, 3 Apr 2021 12:52:16 -0500 Subject: [PATCH] Change messageReaction count needed and increase logging --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 0bc0670..986ab78 100644 --- a/index.js +++ b/index.js @@ -684,8 +684,11 @@ client.on('messageReactionAdd', (messageReaction, user) => { console.error; } if (result.kulboard_id) { + console.log("Kulboard found"); + console.log("Emoji name: " + messageReaction.emoji.name); + console.log("Amount: " + messageReaction.count); 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 > 2) { messageReaction.message.guild.channels.cache.get(kulboardChannel).send(kulboardEmbed).catch(console.error); } }