Merge pull request #80 from Oliver-Akins/dev
Fix order of ternary expression - IMPORTANT
This commit is contained in:
commit
00f98e85c0
1 changed files with 3 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import startWebsocket from "./websocket";
|
|||
import { Validate } from "./utils/validate";
|
||||
import { processExit } from "./utils/cleanup";
|
||||
import { readdirSync, readFileSync } from "fs";
|
||||
// import { DiscordTransport } from "./utils/DiscordTransport";
|
||||
|
||||
export const conf: config = toml.parse(readFileSync(`server.toml`, `utf-8`));
|
||||
|
||||
|
|
@ -34,6 +35,8 @@ export const log: Logger = new Logger({
|
|||
name: `GLOBAL`,
|
||||
});
|
||||
|
||||
// log.attachTransport(new DiscordTransport, "info");
|
||||
|
||||
// Ensure the config valid
|
||||
if (Validate.config(conf)) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue