Browse Source

Merge branch 'master' of git.adawesome.tech:git/bots/awesomemod

master
Abheek Dhawan 4 years ago
parent
commit
26acf71642
  1. 5
      index.js

5
index.js

@ -685,11 +685,8 @@ 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 > 2) {
if (messageReaction.message.guild.channels.cache.get(kulboardChannel) && messageReaction.emoji.name === "😎" && messageReaction.count > 3) {
messageReaction.message.guild.channels.cache.get(kulboardChannel).send(kulboardEmbed).catch(console.error);
}
}

Loading…
Cancel
Save