Skip to content

Commit

Permalink
Merge pull request #315 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
Code isnt updating correctly. Rename file.
  • Loading branch information
JoshuaMicallefYBSU authored Aug 18, 2024
2 parents 09536e4 + 7cf5271 commit 6732a6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use App\Jobs\ProcessSessionReminders;
use App\Jobs\ProcessSoloCertExpiryWarnings;
use App\Jobs\ProcessShanwickController;
use App\Jobs\DiscordWeeklyTrainingUpdates;
use App\Jobs\DiscordTrainingUpdates;
use App\Models\Roster\RosterMember;
use App\Notifications\Network\OneWeekInactivityReminder;
use App\Notifications\Network\TwoWeekInactivityReminder;
Expand Down Expand Up @@ -106,7 +106,7 @@ protected function schedule(Schedule $schedule)
$schedule->job(new ProcessSessionReminders())->daily();

// Check Training Threads Status (Once per week)
$schedule->job(new DiscordWeeklyTrainingUpdates())->weeklyOn(7, '22:21');
$schedule->job(new DiscordTrainingUpdates())->weeklyOn(7, '22:28');

// Discord role updating
//$schedule->job(new UpdateDiscordUserRoles)->twiceDaily(6, 18);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use App\Models\Training\Instructing\Links\StudentStatusLabelLink;
use Carbon\Carbon;

class DiscordWeeklyTrainingUpdates implements ShouldQueue
class DiscordTrainingUpdates implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

Expand Down Expand Up @@ -130,11 +130,11 @@ public function handle()
// // SendEmbed to ask student to send availability
$discord->sendEmbedInTrainingThread($cid, "Please Provide Availability", 'Hello,
Please provide your availability for the next 7-14 days. Please ensure to tag the `@Instructor` role with all times you are available. Please provide these times in Zulu Format.
As we head into the Weekend, we ask you please provide your availability for next week. Please ensure to tag the `@Instructor` role with all times you are available. Please provide these times in Zulu Format.
One of our team will make contact with you to organise a session if they have availability matching yours.
One of our team will make contact with you to organise a session for next if they have availability matching yours.
*If you have done this in the past few days, please disregard this message.*');
*If you have done this in the past few days, or are unable to provide any times for next week, please disregard this message.*');

// $discord->sendMessageWithEmbed(env('DISCORD_WEB_LOGS'), 'Thread Sent: '.$thread['name'], 'Availability Message Sent');
}
Expand Down

0 comments on commit 6732a6c

Please sign in to comment.