From 64b97ff9ba56c22c552c0aec0dc818bd7eb24c2d Mon Sep 17 00:00:00 2001 From: Bsian Date: Thu, 21 May 2020 09:33:48 +0100 Subject: [PATCH] Fixes #9 for previous commit 13b915ab --- src/main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); }