Fixes #9 for previous commit 13b915ab

merge-requests/12/merge
Bsian 2020-05-21 09:33:48 +01:00
parent 13b915ab5a
commit 64b97ff9ba
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,8 @@
import { parse } from 'yaml'; import { parse } from 'yaml';
import { promises as fs } from 'fs'; import { promises as fs } from 'fs';
import { Client } from './class'; import { Client } from './class';
import * as eventFiles from './events';
import * as commandFiles from './commands';
async function main(): Promise<void> { async function main(): Promise<void> {
const read = await fs.readFile('../config.yaml', 'utf8'); const read = await fs.readFile('../config.yaml', 'utf8');
@ -13,8 +15,8 @@ async function main(): Promise<void> {
await client.loadDatabase(); await client.loadDatabase();
client.loadPlugins(); client.loadPlugins();
await client.loadIntervals(); await client.loadIntervals();
await client.loadEvents(); await client.loadEvents(eventFiles);
await client.loadCommands(); await client.loadCommands(commandFiles);
client.connect(); client.connect();
} }