Skip to content

Commit

Permalink
Activate Discord User Roles
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMicallefYBSU committed Aug 23, 2024
1 parent 9f9eee0 commit 2d6f132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected function schedule(Schedule $schedule)
$schedule->job(new DiscordTrainingWeeklyUpdates())->weeklyOn(6, '6:00');

// Discord role updating
//$schedule->job(new UpdateDiscordUserRoles)->twiceDaily(6, 18);
$schedule->job(new UpdateDiscordUserRoles)->twiceDaily(2, 14);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions app/Jobs/UpdateDiscordUserRoles.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function handle()
//Modify
$discord->guild->modifyGuildMember($arguments);

/* //Notify them if roles/nickname were change
//Notify them if roles/nickname were change
if ($user->fullName('FLC') != $guildMember->nick) {
$discord->channel->createMessage([
'channel.id' => intval($user->discord_dm_channel_id),
Expand All @@ -115,7 +115,7 @@ public function handle()
'content' => 'Hi there! Your roles on the Gander Oceanic Discord have been updated in line with your roster status. If there is a mistake, please contact the Web Team.'
]);
}
*/

//Counter!
$counter++;
}
Expand Down

0 comments on commit 2d6f132

Please sign in to comment.