[Tasks] Migrated scheduler to embedded tasks. (#13)

This commit is contained in:
2026-09-28 06:51:38 -07:00
committed by GitHub
parent a2af916ddc
commit 56f528c0c3
12 changed files with 67 additions and 79 deletions
+15
View File
@@ -0,0 +1,15 @@
import { Client } from 'discord.js';
import { Task } from '../types';
import { checkExpiredBans } from '../utils';
const task: Task = {
id: 'checkExpiredBans',
interval: 300000,
firstRun: true,
handle: async (context: Client) => {
await checkExpiredBans(context);
},
};
export default task;