e
All checks were successful
deploy / deploy (push) Successful in 22s

This commit is contained in:
Lee 2024-01-16 15:36:30 +00:00
parent fe15f660e6
commit 3621941a0d
2 changed files with 4 additions and 2 deletions

View File

@ -129,7 +129,8 @@ async function connectWebsocket() {
connectWebsocket();
cron.schedule("*/5 * * * *", update);
cron.schedule("*/1 * * * *", () => {
if (lastMap && Date.now() - lastMap > 10000) {
// 1 minute
if (lastMap && Date.now() - lastMap > 60_000) {
console.log("Beatsaver websocket is dead, reconnecting");
connectWebsocket();
}

View File

@ -157,7 +157,8 @@ update();
connectWebsocket();
cron.schedule("*/1 * * * *", update);
cron.schedule("*/1 * * * *", () => {
if (lastScore && Date.now() - lastScore > 10000) {
// 1 minute
if (lastScore && Date.now() - lastScore > 60_000) {
console.log("Scoresaber websocket is dead, reconnecting");
connectWebsocket();
}