From de60f28a40561b9b93be22a7514ac968158a4ba5 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 19 Oct 2020 23:08:54 +0100 Subject: [PATCH] added one more condition to bot detection --- functions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/index.js b/functions/index.js index f99a4685c..3f2b14472 100644 --- a/functions/index.js +++ b/functions/index.js @@ -828,7 +828,7 @@ exports.testCompleted = functions request.obj.name = name; //check keyspacing and duration here - if (obj.mode === "time" && obj.wpm > 130) { + if (obj.mode === "time" && obj.wpm > 130 && obj.testDuration < 122) { if (verified === false || verified === undefined) { if (keySpacing !== null && keyDuration !== null) { if (