From 381e62d255fcc6d5deb340b32803aec13d064bb3 Mon Sep 17 00:00:00 2001 From: JoshuaMicallefYBSU <91457812+JoshuaMicallefYBSU@users.noreply.github.com> Date: Tue, 22 Oct 2024 17:44:14 +1000 Subject: [PATCH] Update DiscordAccountCheck.php --- app/Jobs/DiscordAccountCheck.php | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/app/Jobs/DiscordAccountCheck.php b/app/Jobs/DiscordAccountCheck.php index 1422da1d..2c63fc61 100644 --- a/app/Jobs/DiscordAccountCheck.php +++ b/app/Jobs/DiscordAccountCheck.php @@ -100,10 +100,10 @@ public function handle() continue; } - // Skip Joshua (Broken for him) - if($user->discord_user_id == 200426385863344129){ - continue; - } + // // Skip Joshua (Broken for him) + // if($user->discord_user_id == 200426385863344129){ + // continue; + // } // Roles Calculation { @@ -252,7 +252,14 @@ public function handle() // ] // ]); - $discord->sendMessageWithEmbed('488265136696459292', 'Roles: '. $user->fullName('FLC'), $discord_roles); + $message = "Roles:"; + + foreach($discord_roles as $roles){ + $message .= "\n-".$roles; + } + + $discord->sendMessageWithEmbed('1274827382250934365', 'Roles: '. $user->fullName('FLC'), $message); + } else { @@ -267,14 +274,14 @@ public function handle() } // Add Role to Users not Connected to Gander Oceanic - foreach($discord_uids as $discord_uid){ - $accounts_not_linked++; //records that Account Not Linked Role Assigned + // foreach($discord_uids as $discord_uid){ + // $accounts_not_linked++; //records that Account Not Linked Role Assigned - sleep(1); + // sleep(1); - // add role - $discord->getClient()->put('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$discord_uid.'/roles/1297422968472997908'); - } + // // add role + // $discord->getClient()->put('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$discord_uid.'/roles/1297422968472997908'); + // }