Update the When To Kick time to match the cron time
All checks were successful
Deploy To Stage / build (push) Successful in 18s
Deploy To Stage / deploy (push) Successful in 17s

This commit is contained in:
Ethan Lane 2025-01-12 12:48:59 +00:00
parent 784eb5e6c5
commit e8de5e9931

View file

@ -70,6 +70,11 @@ export default async function AutoKick() {
if (now.getMonth() == whenToNotice.getMonth()
&& now.getDate() == whenToNotice.getDate()
&& now.getHours() == whenToNotice.getHours()) {
const nextHour = new Date(whenToNotice);
nextHour.setMinutes(0, 0, 0);
nextHour.setHours(whenToNotice.getHours() + 1);
const embed = new EmbedBuilder()
.setTitle("Auto Kick Notice")
.setColor(EmbedColours.Warning)
@ -82,7 +87,7 @@ export default async function AutoKick() {
},
{
name: "When To Kick",
value: `<t:${Math.round(whenToKick.getTime() / 1000)}:R>`,
value: `<t:${Math.round(nextHour.getTime() / 1000)}:R>`,
inline: true,
},
]);