Browse Source

Make sure to only post on külboard for messages with 😎 reactions.

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

2
bot.js

@ -804,7 +804,7 @@ client.on('messageReactionAdd', (messageReaction, user) => {
if (result.kulboard_id) {
kulboardChannel = result.kulboard_id;
if (message.guild.channels.cache.get(kulboardChannel)) {
if (message.guild.channels.cache.get(kulboardChannel) && emoji === '😎' && numEmoji === 3) {
message.guild.channels.cache.get(kulboardChannel).send(kulboardEmbed).catch(console.error);
}
}

Loading…
Cancel
Save