Change timer interval for new spirits to 30 seconds
This commit is contained in:
@@ -53,7 +53,7 @@ function pushSpiritToAllClients() {
|
|||||||
console.log(`Spirit "${spirit.Name}" wurde an alle Clients gepusht.`);
|
console.log(`Spirit "${spirit.Name}" wurde an alle Clients gepusht.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Timer: Alle 20 Sekunden neues Spirit ---
|
// --- Timer: Alle 30 Sekunden neues Spirit ---
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
currentSpiritIndex = Math.floor(Math.random() * spirits.length);
|
currentSpiritIndex = Math.floor(Math.random() * spirits.length);
|
||||||
pushSpiritToAllClients();
|
pushSpiritToAllClients();
|
||||||
|
|||||||
Reference in New Issue
Block a user