23 lines
No EOL
555 B
TypeScript
23 lines
No EOL
555 B
TypeScript
// Filepath alias resolution
|
|
import "module-alias/register";
|
|
|
|
import startWebsocketServer from "./websocket";
|
|
import { loadConfig } from "./utils/config";
|
|
import { GameDB } from "./objects/GameDB";
|
|
import { Logger } from "tslog";
|
|
|
|
export const config: IConfig = loadConfig();
|
|
|
|
// Define the logger
|
|
export const log = new Logger({
|
|
displayFilePath: "hidden",
|
|
displayFunctionName: false,
|
|
displayDateTime: true,
|
|
displayLoggerName: false,
|
|
displayLogLevel: true,
|
|
minLevel: config.log.level,
|
|
});
|
|
|
|
export const games = new GameDB();
|
|
|
|
startWebsocketServer(); |