timeline feaky

This commit is contained in:
deploy
2026-06-04 23:35:09 +00:00
parent 6ceb800855
commit de42c30bab
3 changed files with 265 additions and 40 deletions
+7 -1
View File
@@ -900,8 +900,14 @@ app.get('/docs', (req, res) => {
});
app.get('/timeline', (req, res) => {
let serverCount = 0;
try {
const report = fs.readFileSync(path.join(STORAGE_ROOT, 'SREBOT_GUILDS.txt'), 'utf8').trim();
serverCount = report ? report.split('\n').length : 0;
} catch { /* file may not exist yet */ }
res.render('timeline', {
botName: 'Toothless SQB Bot'
botName: 'Toothless SQB Bot',
serverCount
});
});