지금까지 내용 커밋
This commit is contained in:
16
bot/src/index.ts
Normal file
16
bot/src/index.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { BotClient } from "./classes/BotClient";
|
||||
import { LavalinkManager } from "./classes/LavalinkManager";
|
||||
import { Handler } from "./classes/Handler";
|
||||
import { onEvents } from "./events";
|
||||
import { RedisClient } from "./classes/RedisClient";
|
||||
|
||||
export const client = new BotClient();
|
||||
export const lavalinkManager = new LavalinkManager(client);
|
||||
export const handler = new Handler();
|
||||
export const Redis = new RedisClient();
|
||||
|
||||
for (const eventName of Object.keys(onEvents) as (keyof typeof onEvents)[]) {
|
||||
client.onEvent(eventName, onEvents[eventName]);
|
||||
}
|
||||
|
||||
client.start();
|
||||
Reference in New Issue
Block a user