mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 04:19:06 +08:00
added a log
This commit is contained in:
parent
9cb1620b55
commit
77401ebd2a
1 changed files with 4 additions and 0 deletions
|
@ -396,6 +396,10 @@ exports.testCompleted = functions.https.onCall((request, response) => {
|
|||
`sending command to the bot to update the role for user ${request.uid} with wpm ${obj.wpm}`
|
||||
);
|
||||
updateDiscordRole(userdata.discordId, Math.round(obj.wpm));
|
||||
} else {
|
||||
console.log(
|
||||
`not updating role for user ${request.uid} higher pb found ${besttime60} than ${obj.wpm}`
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue