0
0
Fork 0

Merge pull request #80 from Oliver-Akins/dev

Fix order of ternary expression - IMPORTANT
This commit is contained in:
Oliver 2021-03-04 14:45:41 -07:00 committed by GitHub
commit 00f98e85c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@ import startWebsocket from "./websocket";
import { Validate } from "./utils/validate"; import { Validate } from "./utils/validate";
import { processExit } from "./utils/cleanup"; import { processExit } from "./utils/cleanup";
import { readdirSync, readFileSync } from "fs"; import { readdirSync, readFileSync } from "fs";
// import { DiscordTransport } from "./utils/DiscordTransport";
export const conf: config = toml.parse(readFileSync(`server.toml`, `utf-8`)); export const conf: config = toml.parse(readFileSync(`server.toml`, `utf-8`));
@ -34,6 +35,8 @@ export const log: Logger = new Logger({
name: `GLOBAL`, name: `GLOBAL`,
}); });
// log.attachTransport(new DiscordTransport, "info");
// Ensure the config valid // Ensure the config valid
if (Validate.config(conf)) { if (Validate.config(conf)) {