mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
feat(discord-bot): a public status card with a banner, and log cards with fields
- The status card is the players' card now: a title, "Online" and the admin's message, players and rooms, uptime and memory, an optional banner image and a "Play Burrow" button. The open report count is staff data and is no longer on it. - The admin page's Discord tab takes a banner image URL (http(s), at most 500 characters, blank for none), saved as discordBotStatusBanner and named in the mod log. GET /burrow-status-banner.png serves a banner of our own. - The game activity, moderation, bot audit and security logs are one card shape (logCard): a summary line, a list of fields and when it was logged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
92ebb4d07c
commit
8839f86e6c
5 files changed
+119
-27
No files matched your search
@@ -1008,6 +1008,10 @@ const handle = async (req, res) => {
|
||||
res.setHeader("Cache-Control", "public, max-age=86400");
|
||||
send(res, 200, await fs.promises.readFile(path.join(config.publicDir, "ban-icon.png")), MIME[".png"]);
|
||||
return;
|
||||
case "GET /burrow-status-banner.png": // public banner used by the Discord status card
|
||||
res.setHeader("Cache-Control", "public, max-age=86400");
|
||||
send(res, 200, await fs.promises.readFile(path.join(config.publicDir, "burrow-status-banner.png")), MIME[".png"]);
|
||||
return;
|
||||
case "GET /bio-icon.png": // the button of the card's Bio tab
|
||||
res.setHeader("Cache-Control", "public, max-age=86400");
|
||||
send(res, 200, await fs.promises.readFile(path.join(config.publicDir, "bio-icon.png")), MIME[".png"]);
|
||||
|
||||
Reference in new issue
Block a user