lmariscal / twitchirc

Twitch Bot Development made Easier | DEPRECATED
Other
40 stars 15 forks source link

Request: onLive Event #35

Open chrisderwahre opened 6 years ago

chrisderwahre commented 6 years ago

Hey there, i saw a Bot which sends a Message when the Channel goes live. Is this possible to add to this project? Would be cool tho.

mvarendorff commented 6 years ago

You can monitor the channel.isLive method in a seperate thread if you need a solution for that quickly. Else you will have to wait till March as this has the exact issue like #26 . Yes there is a webhook for it but there is no way for local applications to utilize that so the only option would be polling. You can do that currently already by repeatedly calling channel.isLive or as mentioned wait a little until I wrote a cleaner interface for that (what runs in the background would still be the same but it could then be used the same way (Overriding a onLive method).