Initialization sequence changed slightly

This commit is contained in:
plane000
2018-10-28 20:17:58 +00:00
parent 0c0f69202d
commit 1e5f0b7bc4
2 changed files with 5 additions and 4 deletions

View File

@@ -5,8 +5,9 @@ import {Config} from './config';
import {Database} from './database/database';
import {Events} from './events';
init();
async function init() {
let client;
export async function init() {
Logger.init();
Logger.SetLevel(Logger.VERBOSE_LOGS);
@@ -15,7 +16,7 @@ async function init() {
await Database.init();
const client = new Discord.Client();
client = new Discord.Client();
const eventHandler = new Events();
await eventHandler.init(client);