A powerful and extendable Discord bot, with it's own module system :3 thevoid.cafe/projects/voidy

✨ Enable FeatureHandler in index.ts

Changed files
+4
src
+4
src/index.ts
··· 2 2 import { VoidyClient } from "./utils/classes/VoidyClient.ts"; 3 3 import { CommandHandler } from "./handlers/CommandHandler.ts"; 4 4 import { EventHandler } from "./handlers/EventHandler.ts"; 5 + import { FeatureHandler } from "./handlers/FeatureHandler.ts"; 5 6 import * as mongoose from "mongoose"; 6 7 7 8 // Create bot client instance ··· 19 20 // Handle standalone commands and events 20 21 await CommandHandler.loadCommands(client, ["src/commands"]); 21 22 await EventHandler.loadEvents(client, ["src/events"]); 23 + 24 + // Handle Feature packs 25 + await FeatureHandler.loadAll(client, ["src/features"]); 22 26 23 27 // Login using the specified token 24 28 client.login(Deno.env.get("BOT_TOKEN")).then(() => console.log("[Voidy] Successfully logged in!"));