diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index e6e1770c..1418d50a 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -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(); diff --git a/app/Jobs/DiscordAccountCheck.php b/app/Jobs/DiscordAccountCheck.php index 7abb82ce..ddd29769 100644 --- a/app/Jobs/DiscordAccountCheck.php +++ b/app/Jobs/DiscordAccountCheck.php @@ -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){ @@ -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, ); @@ -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, ); } @@ -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.', ); }