Skip to content

Commit

Permalink
Merge pull request #314 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
Get Function to Work (Without Tag)
  • Loading branch information
JoshuaMicallefYBSU authored Aug 18, 2024
2 parents db924a3 + 0a4c4ef commit 09536e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
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:05');
$schedule->job(new DiscordWeeklyTrainingUpdates())->weeklyOn(7, '22:21');

// Discord role updating
//$schedule->job(new UpdateDiscordUserRoles)->twiceDaily(6, 18);
Expand Down
10 changes: 5 additions & 5 deletions app/Jobs/DiscordWeeklyTrainingUpdates.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ public function handle()
$avail_message++;

// // SendEmbed to ask student to send availability
// $discord->sendEmbedInTrainingThread($cid, "Your Availability", 'Hello, <@'.$student->user->discord_user_id.'>
$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.
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.
// 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 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, please disregard this message.*');

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

0 comments on commit 09536e4

Please sign in to comment.