From 14b9204cdc8b20829bcc57732f8488870f233bbe Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 5 Apr 2021 09:14:29 -0500 Subject: [PATCH] Add different cool-type emoji with different number of :sunglasses: reactions --- bot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 234a303..421b674 100644 --- a/bot.js +++ b/bot.js @@ -800,6 +800,8 @@ client.on('messageReactionAdd', (messageReaction, user) => { const emoji = messageReaction.emoji.name; const emojiID = messageReaction.emoji.id; let numEmoji; + let coolness; + numEmoji > 6 ? coolness = '<:cool_finger_guns:828632824512512030>' : coolness = '😎'; message.reactions.cache.get(emojiID) ? numEmoji = message.reactions.cache.get(emojiID).count : numEmoji = message.reactions.cache.get(emoji).count; const messageReactionAddEmbed = new Discord.MessageEmbed() .setTitle("Reaction Added") @@ -816,10 +818,10 @@ client.on('messageReactionAdd', (messageReaction, user) => { } const kulboardEmbed = new Discord.MessageEmbed() - .setTitle("Very kül message") + .setTitle(`Very Kül Message ${coolness}`) .addField("Link", `[Click here!](${message.url})`) .setAuthor(message.author.tag, message.author.avatarURL()) - .addField(`Max 😎 Reactions`, `${numEmoji}`) + .addField(`# of 😎 Reactions`, `${numEmoji}`) .addField("Channel", message.channel) .setThumbnail(message.author.avatarURL()) .setFooter("Message ID: " + message.id)