From 8e47cd9ea9b68f680fe04b4d28ad1a51218c6077 Mon Sep 17 00:00:00 2001 From: Dessa Simpson Date: Sun, 1 Nov 2020 13:18:18 -0700 Subject: [PATCH] Cleanup --- public/main.js | 2 -- src/app.ts | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/public/main.js b/public/main.js index 7dfed8a..8cacc5d 100644 --- a/public/main.js +++ b/public/main.js @@ -12,7 +12,6 @@ function getRequests(count,allRequests) { .then(response => response.json()) .then(requests => { window.requests = requests; - console.log(requests); buildTable(); }); } @@ -24,7 +23,6 @@ function buildTable() { if (window.isStreamer) requestsDivHTML += 'Update' requestsDivHTML += ""; for (request of requests) { - console.log(request); requestsDivHTML += `${request.url}\ ${request.imageurl ? `` : ''}${request.requester}\ ${request.score}`; diff --git a/src/app.ts b/src/app.ts index 1363e8d..036f5b5 100644 --- a/src/app.ts +++ b/src/app.ts @@ -343,8 +343,7 @@ async function processBannedUsers() { setTimeout(processBannedUsers,3600000+Math.floor(Math.random()*900000)) // Run every 1-1.25 hours to balance load } -//setTimeout(processBannedUsers,3600000+Math.floor(Math.random()*900000)) // Run every 1-1.25 hours to balance load -processBannedUsers(); +setTimeout(processBannedUsers,600000+Math.floor(Math.random()*600000)) app.listen(config.port, () => { console.log(`Listening on port ${config.port}`);