Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Huniko519 committed Feb 1, 2024
1 parent 0ead174 commit d91a478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' : ''}.`);
Expand Down

0 comments on commit d91a478

Please sign in to comment.