14-day Driver Cooldown

This commit is contained in:
ssyyhhrr
2023-03-28 13:13:41 +01:00
parent b344106c19
commit 83eefdce6c

2
app.js
View File

@@ -189,7 +189,7 @@ function dotd() {
driver = pastDrivers[pastDrivers.length - 1]
} else {
let newDriver = getRandomProperty(drivers)
while (pastDrivers.slice(-7).includes(newDriver)) {
while (pastDrivers.slice(-14).includes(newDriver)) {
newDriver = getRandomProperty(drivers)
}
driver = newDriver