misc.anonradio: mark sat 0300 as sbr

This commit is contained in:
Cynthia Foxwell 2022-09-09 21:12:40 -06:00
parent b07d33f315
commit e09d605699

View file

@ -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 = "";