mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
giving roles only for time 60
This commit is contained in:
parent
7ea686c951
commit
adb6d20ddb
1 changed files with 3 additions and 4 deletions
|
@ -170,12 +170,11 @@ class ResultController {
|
|||
const isPb = await UserDAO.checkIfPb(uid, result);
|
||||
const tagPbs = await UserDAO.checkIfTagPb(uid, result);
|
||||
|
||||
if (isPb && user.discordId) {
|
||||
BotDAO.updateDiscordRole(user.discordId, result.wpm);
|
||||
}
|
||||
|
||||
if (result.mode === "time" && String(result.mode2) === "60") {
|
||||
UserDAO.incrementBananas(uid, result.wpm);
|
||||
if (isPb && user.discordId) {
|
||||
BotDAO.updateDiscordRole(user.discordId, result.wpm);
|
||||
}
|
||||
}
|
||||
|
||||
let tt = 0;
|
||||
|
|
Loading…
Reference in a new issue