From 88f070c078e32902d9bada6c1a5146ca2cdddd36 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 3 Apr 2023 20:27:27 -0600 Subject: [PATCH] privateReminders: revert time check just in case idk why i even changed it and i dont remember changing it blame: 90132ed9c0387d2977ba967d0d4727a2223739c6 --- src/modules/privateReminders.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/privateReminders.js b/src/modules/privateReminders.js index 5810036..41845cf 100644 --- a/src/modules/privateReminders.js +++ b/src/modules/privateReminders.js @@ -94,9 +94,9 @@ hf.bot.once("ready", () => { let [hour, minutes] = time.split(":"); hour = parseInt(hour); minutes = parseInt(minutes); - const lastRan = new Date(await getLastRun(data.user)).getTime(); + const lastRan = await getLastRun(data.user); - if (now > lastRan && hour == data.hour && minutes == 0) { + if (date != lastRan && hour == data.hour && minutes == 0) { logger.verbose( "privateReminders", `attempting to send reminder to ${data.user}`