Fix requests display for web instance

This commit is contained in:
lowlighter
2021-03-21 17:51:45 +01:00
parent 861a0e5663
commit 89182c62c0
3 changed files with 2 additions and 6 deletions

View File

@@ -89,7 +89,7 @@
let requests = {limit:0, used:0, remaining:0, reset:NaN}
if (!conf.settings.notoken) {
requests = (await rest.rateLimit.get()).data.rate
setInterval(async() => requests = (await rest.rateLimit.get()).data.rate, 30*1000)
setInterval(async() => requests = (await rest.rateLimit.get()).data.rate, 5*60*1000)
}
//Web
app.get("/", limiter, (req, res) => res.sendFile(`${conf.paths.statics}/index.html`))