feat: Implement dynamic event loading and refactor event handlers into dedicated files.
This commit is contained in:
14
src/events/ready.ts
Normal file
14
src/events/ready.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Events } from "discord.js";
|
||||
import { schedulerService } from "@/modules/system/scheduler";
|
||||
import type { Event } from "@lib/types";
|
||||
|
||||
const event: Event<Events.ClientReady> = {
|
||||
name: Events.ClientReady,
|
||||
once: true,
|
||||
execute: async (c) => {
|
||||
console.log(`Ready! Logged in as ${c.user.tag}`);
|
||||
schedulerService.start();
|
||||
},
|
||||
};
|
||||
|
||||
export default event;
|
||||
Reference in New Issue
Block a user