From e09d6056997376e13b68669a80f26e347dfe69ba Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 9 Sep 2022 21:12:40 -0600 Subject: [PATCH] misc.anonradio: mark sat 0300 as sbr --- src/modules/misc.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/modules/misc.js b/src/modules/misc.js index 0da9a79..5da9f52 100644 --- a/src/modules/misc.js +++ b/src/modules/misc.js @@ -331,6 +331,18 @@ anonradio.callback = async function (msg, line) { liveNow.name = liveNow.name.replace(" <- Live NOW", ""); } + const currentHour = now.getUTCHour(); + const currentDay = now.getUTCDay(); + // sbr only ever lasts 2 hours on average + if ( + currentDay == 6 && + currentHour >= 3 && + currentHour <= 5 && + liveNow.id == "openmic" + ) { + liveNow.name = "Synth Battle Royale"; + } + let title = ""; let subtitle = "";