Browse Source

Add another stage for new message/icon in külboard

master
Abheek Dhawan 4 years ago
parent
commit
2f2fb8335c
  1. 16
      bot.js

16
bot.js

@ -802,7 +802,13 @@ client.on('messageReactionAdd', (messageReaction, user) => {
let numEmoji; let numEmoji;
let coolness; let coolness;
message.reactions.cache.get(emojiID) ? numEmoji = message.reactions.cache.get(emojiID).count : numEmoji = message.reactions.cache.get(emoji).count; message.reactions.cache.get(emojiID) ? numEmoji = message.reactions.cache.get(emojiID).count : numEmoji = message.reactions.cache.get(emoji).count;
numEmoji > 6 ? coolness = '<:cool_finger_guns:828632824512512030> *Very* Kül Message' : coolness = '😎 Pretty Kül Message'; if (numEmoji > 6) {
coolness = '<:cool_finger_guns:828632824512512030> *Very* Kül Message'
} else if (numEmoji > 9) {
coolness = '<a:pepe_cool_clap:828638408297414727> **SUPA** Kül Message'
} else {
coolness = '😎 Pretty Kül Message';
}
const messageReactionAddEmbed = new Discord.MessageEmbed() const messageReactionAddEmbed = new Discord.MessageEmbed()
.setTitle("Reaction Added") .setTitle("Reaction Added")
.setAuthor(user.tag, user.avatarURL()) .setAuthor(user.tag, user.avatarURL())
@ -883,7 +889,13 @@ client.on('messageReactionRemove', (messageReaction, user) => {
let numEmoji; let numEmoji;
let coolness; let coolness;
message.reactions.cache.get(emojiID) ? numEmoji = message.reactions.cache.get(emojiID).count : numEmoji = message.reactions.cache.get(emoji).count; message.reactions.cache.get(emojiID) ? numEmoji = message.reactions.cache.get(emojiID).count : numEmoji = message.reactions.cache.get(emoji).count;
numEmoji > 6 ? coolness = '<:cool_finger_guns:828632824512512030> *Very* Kül Message' : coolness = '😎 Pretty Kül Message'; if (numEmoji > 6) {
coolness = '<:cool_finger_guns:828632824512512030> *Very* Kül Message'
} else if (numEmoji > 9) {
coolness = '<a:pepe_cool_clap:828638408297414727> **SUPA** Kül Message'
} else {
coolness = '😎 Pretty Kül Message';
}
const messageReactionRemoveEmbed = new Discord.MessageEmbed() const messageReactionRemoveEmbed = new Discord.MessageEmbed()
.setTitle("Reaction Removed") .setTitle("Reaction Removed")
.setAuthor(user.tag, user.avatarURL()) .setAuthor(user.tag, user.avatarURL())

Loading…
Cancel
Save