From d91a478ab1a0fdbd5dbf23c526544ac85f1fe370 Mon Sep 17 00:00:00 2001 From: "Mr. H" Date: Thu, 1 Feb 2024 10:28:30 +0200 Subject: [PATCH] Update main.js --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 1939d04..fb4f20e 100644 --- a/main.js +++ b/main.js @@ -101,7 +101,8 @@ async function run() { const unfollowers = following.filter(user => !followers.map(follower => follower.login).includes(user.login)); const unfollowing = followers.filter(user => !following.map(follow => follow.login).includes(user.login)); followers.reverse(); - + console.log('unfollowers -> ', unfollowers, ' || unfollowing -> ', unfollowing); + if(unfollowers.length > 0) { await queryUnfollowUnfollowers(unfollowers.entries()); console.log(`You unfollowed the ${unfollowers.length} bad guy${unfollowers.length > 1 ? 's' : ''}.`);