Skip to content

Commit

Permalink
Merge pull request #372 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
Joshua branch
  • Loading branch information
JoshuaMicallefYBSU authored Oct 20, 2024
2 parents 2826e9b + 59a4e62 commit a8d701b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Jobs/DiscordAccountCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function handle()
}

// Add a Sleep Timer - Allows API to not block
sleep(3);
sleep(1);

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

sleep(1);

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

$discord->sendMessageWithEmbed(
'1297517512904409099',
'NOT LINKED - '.$user->fullName('FLC'),
'User is not linked with CZQO.',
'NOT LINKED - '.$discord_uid,
'Discord User is not connected with Gander Oceanic.',
);
}

Expand Down

0 comments on commit a8d701b

Please sign in to comment.