feat: add health check server

This commit is contained in:
2024-09-26 11:17:31 -07:00
parent 9def06d149
commit 6bfe251fe7
4 changed files with 1881 additions and 1156 deletions
+2
View File
@@ -3,6 +3,7 @@ import * as Sentry from "@sentry/node";
import { Client, GatewayIntentBits, WebhookClient } from "discord.js";
import { manageRoles } from "./modules/manageRoles";
import { instantiateServer } from "./server/serve";
import { errorHandler } from "./utils/errorHandler";
Sentry.init({
@@ -43,6 +44,7 @@ Sentry.init({
});
await bot.login(process.env.DISCORD_TOKEN);
await instantiateServer(bot);
} catch (err) {
await errorHandler("index", err);
}