timeline feaky
This commit is contained in:
+7
-1
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user