feat: add unified Discord bot and dashboard

This commit is contained in:
Snipzil committed 2026-10-20 22:13:50 -04:00
1 parent 113bf9342e
commit b11ae1dfa8
14 files changed
+1708 -14

No files matched your search

+7
View File
@@ -22,6 +22,7 @@ const defpacks = require("./defpacks.js");
const limits = require("./limits.js");
const manage = require("./manage.js");
const modpanel = require("./modpanel.js");
const discordBot = require("./discordbot.js");
const badges = require("./badges.js");
const extraMusic = require("./extramusic.js");
const customMusic = require("./custommusic.js");
@@ -758,6 +759,12 @@ const handle = async (req, res) => {
from.local = false;
}
// GitHub sends signed push events here for optional Discord update cards.
if (url.pathname === "/discord/github") {
await discordBot.handleGithubWebhook(req, res);
return;
}
// One entry point for the owner and staff dashboards. The old addresses
// stay as bookmark-friendly redirects; their APIs remain available for
// installed tools and are not redirected.