Added cron event handler
This commit is contained in:
@@ -3,6 +3,7 @@ import config from "./Config"
|
||||
import { redis } from "./Redis"
|
||||
import { connect } from "mongoose"
|
||||
import init from "./Init"
|
||||
import { loadCronEvents } from "./Cron"
|
||||
const client = new Client()
|
||||
|
||||
export default class Illegitimate {
|
||||
@@ -10,13 +11,11 @@ export default class Illegitimate {
|
||||
|
||||
async start() {
|
||||
init()
|
||||
|
||||
client.start()
|
||||
|
||||
loadCronEvents()
|
||||
redis.on("ready", () => {
|
||||
console.log("Connected to Redis")
|
||||
})
|
||||
|
||||
connect(config.prod.mongoURI!, {}).then(() => {
|
||||
console.log("Connected to MongoDB")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user