diff --git a/src/main.ts b/src/main.ts index 5213da2..c3682ad 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,6 +4,8 @@ import { parse } from 'yaml'; import { promises as fs } from 'fs'; import { Client } from './class'; +import * as eventFiles from './events'; +import * as commandFiles from './commands'; async function main(): Promise { const read = await fs.readFile('../config.yaml', 'utf8'); @@ -13,8 +15,8 @@ async function main(): Promise { await client.loadDatabase(); client.loadPlugins(); await client.loadIntervals(); - await client.loadEvents(); - await client.loadCommands(); + await client.loadEvents(eventFiles); + await client.loadCommands(commandFiles); client.connect(); }