privateReminders: revert time check just in case

idk why i even changed it and i dont remember changing it

blame: 90132ed9c0
This commit is contained in:
Cynthia Foxwell 2023-04-03 20:27:27 -06:00
parent 68ccd5ff98
commit 88f070c078

View file

@ -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}`