Nightly: CHAOS-Intervall angepasst auf 60120 Sekunden

This commit is contained in:
vibe-bot 2025-08-09 15:37:47 +02:00
parent 460c53c1d4
commit 8488d9da0a

View file

@ -188,14 +188,14 @@ export default function App() {
const scheduleNextPlay = async () => { const scheduleNextPlay = async () => {
if (!chaosModeRef.current) return; if (!chaosModeRef.current) return;
await playRandomSound(); await playRandomSound();
const delay = 60_000 + Math.floor(Math.random() * 120_000); // 1-3 Minuten const delay = 60_000 + Math.floor(Math.random() * 60_000); // 60-120 Sekunden
chaosTimeoutRef.current = window.setTimeout(scheduleNextPlay, delay); chaosTimeoutRef.current = window.setTimeout(scheduleNextPlay, delay);
}; };
// Sofort ersten Sound abspielen // Sofort ersten Sound abspielen
await playRandomSound(); await playRandomSound();
// Nächsten zufällig in 1-3 Minuten planen // Nächsten zufällig in 1-3 Minuten planen
const firstDelay = 60_000 + Math.floor(Math.random() * 120_000); const firstDelay = 60_000 + Math.floor(Math.random() * 60_000);
chaosTimeoutRef.current = window.setTimeout(scheduleNextPlay, firstDelay); chaosTimeoutRef.current = window.setTimeout(scheduleNextPlay, firstDelay);
}; };