is there an equivalent irc messasge that gets sent to the target channel containing the relevant data (hosting channel and number of viewers) in the irc tags? Currently there are only 2 way of programatically know when being hosted:
- checking for the jtv text notification “X is now hosting you for up to Y viewers.” and parse that. Parsing notification messages is rather unsafe though, and, unlike HOSTTARGET, there is no message at the end of the host, so there’s no differentiating between getting hosted for 1 second or 10 hours.
- checking the tmi api. Unfortunately that’d require constant polling to know when being hosted, and due to caching the api has unacceptable delay. Not like it’s an official api anyway