Skip to content

Commit

Permalink
Merge pull request #426 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
Update DiscordAccountCheck.php
  • Loading branch information
JoshuaMicallefYBSU authored Dec 6, 2024
2 parents f54467c + 2778a4c commit 6798166
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions app/Jobs/DiscordAccountCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,35 +315,35 @@ public function handle()
}

// Add Role to Users not Connected to Gander Oceanic
foreach($discord_uids as $discord_uid){
// foreach($discord_uids as $discord_uid){

// Skip the Bot (Gander)
if($discord_uid == 1118430230839840768){
continue;
}

// Skip the Bot (QFA100)
if($discord_uid == 1133048493850771616){
continue;
}

// Skip Server Owner (Gary)
if($discord_uid == 350995372627197954){
continue;
}

$accounts_not_linked++; //records that Account Not Linked Role Assigned

sleep(1);

// // Update user with main roles - Will temp remove staff roles
$discord->getClient()->patch('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$user->discord_user_id, [
'json' => [
'nick' => $user->discord_username,
'roles' => ['1297422968472997908'],
]
]);
}
// // Skip the Bot (Gander)
// if($discord_uid == 1118430230839840768){
// continue;
// }

// // Skip the Bot (QFA100)
// if($discord_uid == 1133048493850771616){
// continue;
// }

// // Skip Server Owner (Gary)
// if($discord_uid == 350995372627197954){
// continue;
// }

// $accounts_not_linked++; //records that Account Not Linked Role Assigned

// sleep(1);

// // // Update user with main roles - Will temp remove staff roles
// $discord->getClient()->patch('guilds/'.env('DISCORD_GUILD_ID').'/members/'.$user->discord_user_id, [
// 'json' => [
// 'nick' => $user->discord_username,
// 'roles' => ['1297422968472997908'],
// ]
// ]);
// }

if($user_updated > 0){
// Record Information for Discord
Expand Down

0 comments on commit 6798166

Please sign in to comment.