diff --git a/app/Jobs/DiscordAccountCheck.php b/app/Jobs/DiscordAccountCheck.php index 0ad7fefb..7e997e0a 100644 --- a/app/Jobs/DiscordAccountCheck.php +++ b/app/Jobs/DiscordAccountCheck.php @@ -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)) { @@ -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.', ); }