private reminders: wait until ready to register timer

This commit is contained in:
Cynthia Foxwell 2021-08-22 14:21:09 -06:00
parent a259ee8da2
commit 4c718e3a9a

View file

@ -68,7 +68,8 @@ function getLastRun(id) {
});
}
timer.add(
hf.bot.once("ready", () => {
timer.add(
"private_reminders",
async () => {
for (const data of reminderData) {
@ -100,4 +101,5 @@ timer.add(
}
},
1000
);
);
});