Skip to content

Commit

Permalink
Merge pull request #386 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
Update DiscordAccountCheck.php
  • Loading branch information
JoshuaMicallefYBSU authored Oct 22, 2024
2 parents 3684df7 + 381e62d commit 4fdc9de
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions app/Jobs/DiscordAccountCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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 {
Expand All @@ -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');
// }



Expand Down

0 comments on commit 4fdc9de

Please sign in to comment.