mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-13 01:57:38 +08:00
added log
This commit is contained in:
parent
4ce12e9173
commit
45fe7b86c4
1 changed files with 15 additions and 0 deletions
|
@ -457,6 +457,21 @@ exports.testCompleted = functions.https.onCall((request, response) => {
|
|||
);
|
||||
return { resultCode: -2 };
|
||||
}
|
||||
if (
|
||||
(keySpacing.sd > 15 && keySpacing.sd <= 25) ||
|
||||
(keyDuration.sd > 10 && keyDuration.sd <= 15) ||
|
||||
(keyDuration.average > 15 && keyDuration.average <= 20)
|
||||
) {
|
||||
console.error(
|
||||
`very close to bot threshold by user (${obj.wpm} ${
|
||||
obj.rawWpm
|
||||
} ${obj.acc}) ${
|
||||
request.uid
|
||||
} ${name} - spacing ${JSON.stringify(
|
||||
keySpacing
|
||||
)} duration ${JSON.stringify(keyDuration)}`
|
||||
);
|
||||
}
|
||||
} else {
|
||||
return { resultCode: -3 };
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue