From 3f1699713ebaac22f616dfc6c2947dc53f49d54d Mon Sep 17 00:00:00 2001 From: Jan Dickmann Date: Tue, 4 Aug 2020 17:00:19 +0200 Subject: [PATCH] yes indeed --- shitposts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shitposts.js b/shitposts.js index 4fd4187..f834691 100644 --- a/shitposts.js +++ b/shitposts.js @@ -20,7 +20,7 @@ client.on('messageReactionAdd', async function(reaction, user) { const count = reaction.message.reactions.cache.filter(e => e.emoji.id == emoji).array()[0].count; - if (count == reaction.message.attachments.array().length > 0 ? 3 : 5) publish = true; // When the message has an attachment, publish it at 3 upvotes, else at 5 + if (count == 3) publish = true; // When the message has an attachment, publish it at 3 upvotes, else at 5 // This publishes the message using a direct API call. (Copied from https://github.com/Forcellrus/Discord-Auto-Publisher/blob/master/bot.js) if (!publish) return;