Improved stats section

This commit is contained in:
bingus_violet 2024-05-20 11:34:25 -05:00
parent e22005dc86
commit 97f7234f92
3 changed files with 31 additions and 2 deletions

View file

@ -112,7 +112,8 @@ function converter(html, query) {
"RELOAD_COUNT": reloads,
"WEATHER_MODIFIER": "",
"WEATHER_TEXT": "",
"ANNOUNCEMENT": fs.readFileSync(path.join(__dirname, "config/announcement.html"))
"ANNOUNCEMENT": fs.readFileSync(path.join(__dirname, "config/announcement.html")),
"CACHED_IMAGES": fs.readdirSync(path.join(__dirname, "cached")).length.toString()
}
replacers.ALL_KEYWORDS = "{" + Object.keys(replacers).join("}{") + "} "