Skip to content

Commit

Permalink
Merge pull request #365 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
JoshuaMicallefYBSU authored Oct 20, 2024
2 parents 9a092ec + 7c37089 commit 6727fdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function schedule(Schedule $schedule)
$schedule->job(new ProcessSessionLogging())->everyMinute();

//Inactivity checks
$schedule->job(new DiscordAccountCheck())->dailyAt('11:25');
$schedule->job(new DiscordAccountCheck())->dailyAt('11:42');

//Inactivity checks
$schedule->job(new ProcessRosterInactivity())->daily();
Expand Down
8 changes: 4 additions & 4 deletions app/Jobs/DiscordAccountCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function handle()
// dd($discord_uids);

// Get a complete list of Gander Oceanic Users
$users = User::all();
$users = User::whereNotNull('discord_user_id')->get();

// Loop through each DB User
foreach($users as $user){
Expand Down Expand Up @@ -163,7 +163,7 @@ public function handle()

$discord->sendMessageWithEmbed(
'1297517512904409099',
'IN DISCORD: '.$user->fullName('FLC'),
'IN DISCORD - '.$user->fullName('FLC'),
'User is in the Discord. '.$user->member_of_czqo,
);

Expand All @@ -188,7 +188,7 @@ public function handle()

$discord->sendMessageWithEmbed(
'1297517512904409099',
'NOT IN DISCORD '.$user->fullName('FLC'),
'NOT IN DISCORD - '.$user->fullName('FLC'),
'User is NOT in the Discord. '.$user->member_of_czqo,
);
}
Expand All @@ -206,7 +206,7 @@ public function handle()

$discord->sendMessageWithEmbed(
'1297517512904409099',
'NOT LINKED: '.$user->fullName('FLC'),
'NOT LINKED - '.$user->fullName('FLC'),
'User is not linked with CZQO.',
);
}
Expand Down

0 comments on commit 6727fdb

Please sign in to comment.