Timer without interval? | Shift timer so it's not based on the hour | Shifted timer

Is there a way to set a timer on a specific time without an interval, like every hour on the 30th minute ?
(e.g. 2.30pm, 3.30pm 4.30pm etc )
This would be a really good & helpful function for NightBot!

Hey @wjone!

Yes you can!
Timers can include JavaScript code, we can use that to evaluate the time and only have an output if it’s 30 minutes past an hour.

First set your timer’s interval to 30 minutes, then here’s the code, replace the YOUR_MESSAGE field:

$(eval t=parseInt('$(time Etc/UTC "m")'); if(t>=30){'YOUR_MESSAGE'})
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.