From e8de5e9931e46dcbc0a56525488e9b6049b99c9b Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sun, 12 Jan 2025 12:48:59 +0000 Subject: [PATCH] Update the When To Kick time to match the cron time --- src/timers/AutoKick.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/timers/AutoKick.ts b/src/timers/AutoKick.ts index 61f743a..67ffe55 100644 --- a/src/timers/AutoKick.ts +++ b/src/timers/AutoKick.ts @@ -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: ``, + value: ``, inline: true, }, ]);