Advanced countdown

Hey, is it possible to create a countdown command which refreshes every X hours from a specified time? For example if someone were to use it, it’d output X:XX until event but as soon as said event occurs it’d restart the countdown. In my case I’d like to have one that refreshes every 5 hours which unfortunately makes it so that the countdown would reference a different time every day which complicates things.

The countdown variable supports this on a daily cadence, but not within an “n hours” cadence. You may be able to write some custom logic using our eval variable: https://docs.nightbot.tv/commands/variables/eval

Sorry I’m not a programmer, if it’s no trouble, could you give an example of such a command? That way I can try to work backwards and get what I’m looking for through trial and error. ^^

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