NightDev Community Forums

Trying to understand "Timers" function

I’m trying to understand how the Timer function works (using it with Twitch).

If I have 3 times:

  • Timer01

    • Interval 60 minutes
    • Chatlines 9
  • Timer02

    • Interval 60 minutes
    • Chatlines 2
  • Timer03

    • Interval 60 minutes
    • Chatlines 39

According to the help documentation:
Interval - Move the slider to the desired amount of time before the timer repeats. For example, 15 minute intervals will activate at 2:00, 2:15, 2:30, etc.
Chat Lines - This is the minimum amount of chat lines (measured in lines per 5 minutes) required to activate the timer.
Note: The timer will first wait the specified amount of time and then check to see if the specified number of chat lines have passed before displaying a message.

My questions are:

  1. If I would go live at 07:45 am:
    A) Does the interval timer starts it’s check at 08:00 am?
    B) Or 60 min after me going live, so 08:45 am?

  2. If it’s 08:00 am, will it then check if there are enough chat lines between 08:00 - 08:05 to fire the timer messages?

  3. If there won’t be 39 chatlines in those 5 minutes, will the next check of Timer 03 be again at 09:00 am?

  4. And if all 3 Timer chatlines conditions are met, in which order will it post the message in chat?
    A) Timer01, Timer02, Timer03
    B) Timer02, Timer01, Timer03

Hey @Myneria!

  1. A , as stated in the documentation: 15min interval will activate at 2:00, 2:15, 2:30, etc., so 60min interval will be 8:00, 9:00, 10:00, etc.

  2. It’ll check if there was enough sent messages between 7:55 and 8:00.

  3. Timer 3 won’t be triggered at 8:00 and there will be another check at 9:00 to see if the message is sent.

  4. I can’t say for sure, but if you want messages to follow each other in a specific order, I recommend using this Nightbot Multiple Messages Command Generator instead, you’ll need just one timer.

1 Like

Hi @EmilyPerrimon

Thanks for your response. About point 4:
I was just being curious that if all 3 timer conditions were met, it will fire in order of chatlines (from less to more) or just in order when the timer was being created.

What I did notice:
We’ve changed the timers and have 2 active:

Timer01

  • Interval 50 minutes
  • Chatlines 2

Timer02

  • Interval 60 minutes
  • Chatlines 14

When the stream starts, at the full hour (f.e. 08:00 hr) both timer messages gets posted.
At 08:50 hr Timer01 get posted again (as expected).

Yet at 09:00 hr both Timer messages get posted again :face_with_monocle:

I had expected that Timer01 would get posted 08:00 - 08:50 - 09:40 - 10:30 hr :thinking:
Instead it goes 08:00 - 08:50 - 09:00 - 09:50 - 10:00 - 10:50 hr :face_with_raised_eyebrow:

Am I wrong in my assumptions?

That’s why I answered I can’t be sure of the order the messages will be posted, and recommended you a solution in case it was important to you.

If you look at the description on how the interval works, for 15min it works: 8:00, 8:15, 8:30, 8:45, etc.
So for 50min it’d works: 8:50, 9:50, 10:50, 11:50, etc, nothing like 8:50, 9:40, 10:30, 11:20, etc.
Where would be the starting point? Midnight? The start of your stream?
However, as you pointed it out, these timers send a message every hours too, I think that’s because it gets refreshed, so every timers will be sent at the start of every hours.