tangled
alpha
login
or
join now
thevoid.cafe
/
voidy
0
fork
atom
A powerful and extendable Discord bot, with it's own module system :3
thevoid.cafe/projects/voidy
0
fork
atom
overview
issues
pulls
pipelines
✨ Enable FeatureHandler in index.ts
Jo
1 year ago
6c9ad90d
70a0b1f6
+4
1 changed file
expand all
collapse all
unified
split
src
index.ts
+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
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
23
+
24
24
+
// Handle Feature packs
25
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!"));