From 80b355fee5a061f8eb9256dfa0041786ade84e3d Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Wed, 23 Oct 2024 21:10:18 +0000 Subject: [PATCH] feat: show net-zero badge on health check (#7) ### Explanation _No response_ ### Issue _No response_ ### Attestations - [ ] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/) - [ ] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/). - [ ] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/). ### Dependencies - [ ] I have pinned the dependencies to a specific patch version. ### Style - [ ] I have run the linter and resolved any errors. - [ ] My pull request uses an appropriate title, matching the conventional commit standards. - [ ] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request. ### Tests - [ ] My contribution adds new code, and I have added tests to cover it. - [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes. - [ ] All new and existing tests pass locally with my changes. - [ ] Code coverage remains at or above the configured threshold. ### Documentation _No response_ ### Versioning _No response_ Reviewed-on: https://codeberg.org/nhcarrigan/mod-bot/pulls/7 Co-authored-by: Naomi Carrigan Co-committed-by: Naomi Carrigan --- src/server/serve.ts | 105 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 104 insertions(+), 1 deletion(-) diff --git a/src/server/serve.ts b/src/server/serve.ts index dd9e3ea..50af4c4 100644 --- a/src/server/serve.ts +++ b/src/server/serve.ts @@ -45,7 +45,110 @@ export const serve = async (bot: ExtendedClient) => { app.use(express.json()); app.get("/", (_req, res) => { - res.send("bot online!"); + res.send(` + + + + Naomi's Mod Bot + + + + + + + + +
+

Naomi's Mod Bot

+
+

A paid moderation bot for Discord.

+
+
+

Links

+

+ + Source Code + +

+

+ + Documentation + +

+

+ + Support + +

+
+
+ + + +`); }); app.get("/metrics", async (_req, res) => {