npm i @fosscord/server-util@1.3.3

This commit is contained in:
Flam3rboy 2021-05-25 01:11:16 +02:00
parent 094ec2449e
commit aa602fcace
4 changed files with 7 additions and 2 deletions

4
.env.example Normal file
View File

@ -0,0 +1,4 @@
MONGO_URL=mongodb://localhost/fosscord
PORT=3002
PRODUCTION=TRUE
THREADS=# automatically use all available cores, only available if production = true

BIN
package-lock.json generated

Binary file not shown.

View File

@ -13,7 +13,7 @@
"author": "Fosscord",
"license": "ISC",
"dependencies": {
"@fosscord/server-util": "^1.3.2",
"@fosscord/server-util": "^1.3.3",
"ajv": "^8.5.0",
"dotenv": "^8.2.0",
"jsonwebtoken": "^8.5.1",

View File

@ -1,7 +1,7 @@
import "missing-native-js-functions";
import dotenv from "dotenv";
dotenv.config();
import { db } from "@fosscord/server-util";
import { Config, db } from "@fosscord/server-util";
import { Server as WebSocketServer } from "ws";
import { Connection } from "./events/Connection";
@ -36,6 +36,7 @@ export class Server {
// @ts-ignore
await (db as Promise<Connection>);
await this.setupSchema();
await Config.init();
console.log("[DB] connected");
console.log(`[Gateway] online on 0.0.0.0:${port}`);
}