Skip to content

Commit

Permalink
Merge pull request #366 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
Update DiscordAccountCheck.php
  • Loading branch information
JoshuaMicallefYBSU authored Oct 20, 2024
2 parents 6727fdb + f7b0667 commit c8f005f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Jobs/DiscordAccountCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function handle()
}

// Add a Sleep Timer - Allows API to not block
sleep(2);
sleep(6);

// Check if user is currently in Discord
if (in_array($user->discord_user_id, $discord_uids)) {
Expand Down Expand Up @@ -199,8 +199,6 @@ public function handle()
foreach($discord_uids as $discord_uid){
$accounts_not_linked++; //records that Account Not Linked Role Assigned

sleep(3);

// add role
$discord->getClient()->put('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$discord_uid.'/roles/1297422968472997908');

Expand Down

0 comments on commit c8f005f

Please sign in to comment.