mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
feat: add unified Discord bot and dashboard
This commit is contained in:
1 parent
113bf9342e
commit
b11ae1dfa8
14 files changed
+1708
-14
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user