summary refs log tree commit diff
path: root/slowcord
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-02 22:09:16 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-02 22:09:16 +1000
commitc1fab4043ac348d10102f850e643f715d7f8e2a9 (patch)
tree663875f7567ee85444d0c8485cda5530d3dfc02a /slowcord
parentshow how long a user was timed out for in logs (diff)
downloadserver-c1fab4043ac348d10102f850e643f715d7f8e2a9.tar.xz
set message max length manually
Diffstat (limited to 'slowcord')
-rw-r--r--slowcord/src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/slowcord/src/index.ts b/slowcord/src/index.ts
index f741d355..20f0aee7 100644
--- a/slowcord/src/index.ts
+++ b/slowcord/src/index.ts
@@ -91,7 +91,7 @@ app.use((req, res, next) => {
 	}
 	else if (rateLimits[ip] > Date.now()) {
 		rateLimits[ip] += allowRequestsEveryMs;
-		console.log(`user ${ip} was timed out for ${(rateLimits[ip] - Date.now()) / 1000}s`);
+		console.log(`${new Date()} : user ${ip} was timed out for ${(rateLimits[ip] - Date.now()) / 1000}s`);
 		return res.sendStatus(429);
 	}
 	else {