From 603139aba7defc809ad3985e95dc786d00895c3e Mon Sep 17 00:00:00 2001 From: "Mr. H" Date: Thu, 1 Feb 2024 14:46:45 +0200 Subject: [PATCH] Update main.js --- main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index b6618bc..021f9cf 100644 --- a/main.js +++ b/main.js @@ -45,7 +45,9 @@ async function run() { if (!safeUserList.includes(username)) { await octokit.users.unfollow({username: uusername}); } - await queryUnfollowUnfollowers(unfollowers); + setTimeout(() => { + await queryUnfollowUnfollowers(unfollowers); + }, 300); } return true; } @@ -55,7 +57,9 @@ async function run() { if( !follower.done ) { const uusername = follower.value[1].login; await octokit.users.follow({username: uusername}); - await queryFollowingUnfollowingUsers(unfollowing); + setTimeout(() => { + await queryFollowingUnfollowingUsers(unfollowing); + }, 300); } return true; }