(tasks): move away from classes for consistency.

This commit is contained in:
2026-08-28 01:43:41 +08:00
parent 2d1de7c203
commit 2b19710664
5 changed files with 15 additions and 31 deletions
+2 -2
View File
@@ -140,8 +140,8 @@ client.on('clientReady', async () => {
await initializeWebserver(client);
tasks.forEach(async (task) => {
if (task.firstRun) await task.handle(client);
setInterval(async () => await task.handle(client), task.interval);
if (task.firstRun) await task.handler(client);
setInterval(async () => await task.handler(client), task.interval);
});
events.forEach(event =>