Added example event

This commit is contained in:
2023-12-29 01:45:59 +01:00
parent 7376c7ddd9
commit bf4ad65112

18
src/events/cron/test.ts Normal file
View File

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