mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-12 17:48:51 +08:00
update
This commit is contained in:
parent
a16435249b
commit
6e1a9b46b3
1 changed files with 4 additions and 3 deletions
|
@ -547,9 +547,10 @@ exports.testCompleted = functions.https.onCall(async (request, response) => {
|
|||
if (verified === false || verified === undefined) {
|
||||
if (keySpacing !== null && keyDuration !== null) {
|
||||
if (
|
||||
keySpacing.sd <= 15 ||
|
||||
keyDuration.sd <= 10 ||
|
||||
keyDuration.average < 15
|
||||
(keySpacing.sd <= 15 ||
|
||||
keyDuration.sd <= 10 ||
|
||||
keyDuration.average < 15) &&
|
||||
obj.consistency < 70
|
||||
) {
|
||||
console.error(
|
||||
`possible bot detected by user (${obj.wpm} ${obj.rawWpm} ${
|
||||
|
|
Loading…
Add table
Reference in a new issue