Add a game manager to the server

This commit is contained in:
Oliver Akins 2022-03-07 23:36:55 -06:00
parent 0ddf5d8a14
commit 6bbd8d68c0
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99
2 changed files with 31 additions and 0 deletions

View file

@ -2,6 +2,7 @@
import "module-alias/register";
import startWebsocketServer from "./websocket";
import { GameDB } from "./objects/GameDB";
import { Logger } from "tslog";
import toml from "toml";
import fs from "fs";
@ -25,5 +26,6 @@ export const log = new Logger({
minLevel: config.log.level,
});
export const games = new GameDB();
startWebsocketServer();