From 9474767542acbd422238e931a9ab9715c3aff43c Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 21 Dec 2023 16:19:15 +0000 Subject: [PATCH] works better w/o lanyard lol --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e72bd28..e8e6cda 100644 --- a/index.js +++ b/index.js @@ -232,8 +232,6 @@ function pageUpdate() { html = html.replace("{SEASONAL_EFFECT}", "") } - // html = html.replace("{COMMITS}", commitCount("https://codeberg.org/Bingus_Violet/Violets-Purgatory")) - fs.writeFileSync(path.join(__dirname, 'static/index.html'), html) } @@ -266,6 +264,8 @@ lanyard.addEventListener("message", (res) => { } }) +pageUpdate() + app.use((req, res, next) => { res.status(404).send(`