Files
bot/core/src/actions/waterMe/waterMe.task.ts
enricobuehler 6ce1fdf67d restructure
move to bun workspaces
bump zod
begin adding fluxer
2026-02-17 18:04:32 +01:00

16 lines
432 B
TypeScript

import { CronJob } from "cron";
import { WaterMeService } from "actions/waterMe/waterMe.service";
const waterMeService = new WaterMeService();
/*
new CronJob(
"0 0 20 * * *", // cronTime
async () => {
console.log("isThirsty()");
await waterMeService.isThirsty();
}, // onTick
null, // onComplete
true, // start
"Europe/Berlin", // timeZone
);*/
// job.start() is optional here because of the fourth parameter set to true.