From 16c7ec50e8b634f5d11df1ee7bd595ade1805f5b Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 2 Jul 2022 22:09:16 +1000 Subject: set message max length manually --- slowcord/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slowcord/src/index.ts') 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 { -- cgit 1.5.1