Added new init function

This commit is contained in:
2023-12-29 00:09:22 +01:00
parent e228b47954
commit b8d138bb0c
7 changed files with 38 additions and 43 deletions

View File

@@ -2,14 +2,14 @@ import { ExtendedClient as Client } from "./Client"
import config from "./Config"
import { redis } from "./Redis"
import { connect } from "mongoose"
// import init from "./Init"
import init from "./Init"
const client = new Client()
export default class Illegitimate {
constructor() {}
async start() {
// init()
init()
client.start()
@@ -17,7 +17,7 @@ export default class Illegitimate {
console.log("Connected to Redis")
})
connect(config.prod.mongoURI, {}).then(() => {
connect(config.prod.mongoURI!, {}).then(() => {
console.log("Connected to MongoDB")
})
}