Not finished command managerand module loader

This commit is contained in:
Ben
2018-11-24 18:25:21 +00:00
parent 48c4038387
commit 700b114b4e
19 changed files with 242 additions and 105 deletions

View File

@@ -4,6 +4,7 @@ import {Logger} from './logger';
import {Config} from './config';
import {Database} from './database/database';
import {Events} from './events';
import {MessageManager} from './messagemanager';
let client;
@@ -16,9 +17,12 @@ export async function init() {
await Database.init();
await MessageManager.init();
client = new Discord.Client();
const eventHandler = new Events();
await eventHandler.init(client);
eventHandler.handleEvents();
}