Nightly: Partymode-Intervall verkürzt auf 3090 Sekunden (sofort + Folgeintervalle)
This commit is contained in:
parent
85a148d45f
commit
49a4407bba
1 changed files with 2 additions and 2 deletions
|
|
@ -205,14 +205,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() * 60_000); // 60-120 Sekunden
|
const delay = 30_000 + Math.floor(Math.random() * 60_000); // 30-90 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() * 60_000);
|
const firstDelay = 30_000 + Math.floor(Math.random() * 60_000);
|
||||||
chaosTimeoutRef.current = window.setTimeout(scheduleNextPlay, firstDelay);
|
chaosTimeoutRef.current = window.setTimeout(scheduleNextPlay, firstDelay);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue