Base structure

This commit is contained in:
2022-11-23 13:23:25 +01:00
parent c7a66fddca
commit 261627570d
11 changed files with 870 additions and 0 deletions

13
index.ts Normal file
View File

@ -0,0 +1,13 @@
import { config } from "dotenv";
import swapConsole from "./src/tools/consoleSwapper";
import "./src/client";
config();
swapConsole();
function shutdown() {
console.log("Shutdown request received");
process.exit();
}
process.on("SIGINT", shutdown);
process.on("SIGHUP", shutdown);