feat: update server logic
Node.js CI / CI (push) Failing after 11s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m17s

This commit is contained in:
2026-01-08 20:52:55 -08:00
parent 5056289982
commit b93ed9a576
+6 -13
View File
@@ -14,14 +14,6 @@ export const instantiateServer = async (bot: Client) => {
try { try {
const server = fastify({ const server = fastify({
logger: false, logger: false,
https: {
cert: await readFile(
"/etc/letsencrypt/live/oogie.nhcarrigan.com/cert.pem"
),
key: await readFile(
"/etc/letsencrypt/live/oogie.nhcarrigan.com/privkey.pem"
),
},
}); });
server.get("/", (_req, res) => { server.get("/", (_req, res) => {
@@ -30,7 +22,7 @@ export const instantiateServer = async (bot: Client) => {
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Boost Monitor</title> <title>Valerium</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="A bot to remove special roles when someone stops boosting a server." /> <meta name="description" content="A bot to remove special roles when someone stops boosting a server." />
@@ -38,14 +30,15 @@ export const instantiateServer = async (bot: Client) => {
</head> </head>
<body> <body>
<main> <main>
<h1>Boost Monitor</h1> <h1>Valerium</h1>
<section> <section>
<img src="https://cdn.nhcarrigan.com/new-avatars/valerium-full.png" width="250" alt="Valerium" />
<p>A bot to remove special roles when someone stops boosting a server.</p> <p>A bot to remove special roles when someone stops boosting a server.</p>
</section> </section>
<section> <section>
<h2>Links</h2> <h2>Links</h2>
<p> <p>
<a href="https://codeberg.org/nhcarrigan/boost-monitor"> <a href="https://git.nhcarrigan.com/nhcarrigan/valerium">
<i class="fa-solid fa-code"></i> Source Code <i class="fa-solid fa-code"></i> Source Code
</a> </a>
</p> </p>
@@ -75,8 +68,8 @@ export const instantiateServer = async (bot: Client) => {
avatarURL: avatarURL:
bot.user?.displayAvatarURL() ?? bot.user?.displayAvatarURL() ??
"https://cdn.nhcarrigan.com/profile.png", "https://cdn.nhcarrigan.com/profile.png",
content: "Fastify server live on port 1443~!", content: "Fastify server live on port 3443~!",
username: bot.user?.username ?? "Boost Monitor", username: bot.user?.username ?? "Valerium",
}); });
}); });
} catch (err) { } catch (err) {