Skip to content

Commit

Permalink
Merge pull request #357 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
Add Kernel
  • Loading branch information
JoshuaMicallefYBSU authored Oct 20, 2024
2 parents 8a73f2e + a3b1527 commit f99e5af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ protected function schedule(Schedule $schedule)
// Activitybot session logging
$schedule->job(new ProcessSessionLogging())->everyMinute();

//Inactivity checks
$schedule->job(new DiscordAccountCheck())->dailyAt('5:40');

//Inactivity checks
$schedule->job(new ProcessRosterInactivity())->daily();

Expand All @@ -60,9 +63,6 @@ protected function schedule(Schedule $schedule)
// Check Training Threads Status (Once per week)
$schedule->job(new DiscordTrainingWeeklyUpdates())->weeklyOn(6, '00:01');

// Check If Account is Linked
$schedule->job(new DiscordAccountCheck)->weeklyOn(5, '0:01');

//CRONS FOR INACTIVITY EMAILS 2 weeks
// $schedule->call(function () {
// //Loop through controllers
Expand Down
7 changes: 5 additions & 2 deletions app/Http/Controllers/DiscordTestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,14 @@ public function SendEmbed()

'Dear Gander Members,
If you are seeing this message, it means your discord account is not linked with our Gander Oceanic Website. As such, your access to the discord has been limited until you link your account.
If you have been pinged in this message, it means your discord account is not linked with our Gander Oceanic Website.
We ask that you head to the [Gander Oceanic Website](https://ganderoceanic.ca/my) to link your Discord Account. Your roles will be assigned at 0400z each day.
This will assist with future upgrades to the Discord Infrastructure.
Access for users not linked will be limited from the 11/31/2024.
Thank You,
Gander Oceanic Team
<@&1278606316906090527>');
}
Expand Down

0 comments on commit f99e5af

Please sign in to comment.