From bf4ad65112b6c8eb293451a6bbf00c6d3aeb0d99 Mon Sep 17 00:00:00 2001 From: Taken Date: Fri, 29 Dec 2023 01:45:59 +0100 Subject: [PATCH] Added example event --- src/events/cron/test.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/events/cron/test.ts diff --git a/src/events/cron/test.ts b/src/events/cron/test.ts new file mode 100644 index 0000000..84db73d --- /dev/null +++ b/src/events/cron/test.ts @@ -0,0 +1,18 @@ +import { Cron } from "../../interfaces"; + +export = { + time: { + seconds: 0, + minutes: 0, + hours: 12, + dayOfMonth: 10, + month: 5, + dayOfWeek: 5 + }, + execute: () => { + console.log("Test cron executed!") + }, + onComplete: null, + start: true, + timeZone: "Europe/Zagreb" +} as Cron \ No newline at end of file