Update interval for spirit push to every 20 seconds

This commit is contained in:
2025-05-28 03:12:32 +02:00
parent 5dcdcd5be8
commit 85cbc28981

View File

@@ -52,11 +52,11 @@ function pushSpiritToAllClients() {
console.log(`Spirit "${spirit.name}" wurde an alle Clients gepusht.`);
}
// --- Timer: Alle 15 Sekunden neues Spirit ---
// --- Timer: Alle 20 Sekunden neues Spirit ---
setInterval(() => {
currentSpiritIndex = Math.floor(Math.random() * spirits.length);
pushSpiritToAllClients();
}, 15000);
}, 20000);
// Beim Start: Ersten Spirit pushen
setTimeout(pushSpiritToAllClients, 1500);