Hey everyone,
Is it possible to turn automations on and off from a script?
I’m trying to turn them all off automatically during weekends, so messages don’t show up until monday. My caveman way would be something like
const d = new Date();
let day = d.getDay();
if (day !== 0 && day !== 6) {
//Turn all automations off
}
Would that make any sense? Or would it be better if I leave my automations on forever and try to script them in order to only activate on weekdays?
Thanks in advance