Update interval for spirit updates to every 15 seconds

This commit is contained in:
2025-05-28 03:10:48 +02:00
parent 28fb6f9847
commit 5dcdcd5be8

View File

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