So far we've relied on the user to mark the start of a stream with !start and likewise end it with !stop, but it turns out the stream status is queryable. As such, we can create a looping Fiber that occasionally checks whether the stream is up, and if it is, starts things like watchtime counting.
This adds a stream monitor to the Twitch plugin.
So far we've relied on the user to mark the start of a stream with
!start
and likewise end it with!stop
, but it turns out the stream status is queryable. As such, we can create a loopingFiber
that occasionally checks whether the stream is up, and if it is, starts things like watchtime counting.