tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.56k stars 212 forks source link

client.on("hosted") viewer count returns "up" instead of hosted viewer count #136

Closed puri-puri closed 8 years ago

puri-puri commented 8 years ago

Twitch must have changed how hosts are handled, because TMI.js's host receiving function isn't working correctly. I see in Chatty that the message now reads " is now hosting you for up to viewers." when the message used to be " is now hosting you for viewers."

I still see the host event, but viewer count is no longer an int.

AlcaDesign commented 8 years ago

The current host messages are:

:jtv!jtv@jtv.tmi.twitch.tv PRIVMSG channel :name is now hosting you. :jtv!jtv@jtv.tmi.twitch.tv PRIVMSG channel :name is now hosting you for up to n viewers.

I guess they're just being accurately vague about the count.

Schmoopiie commented 8 years ago

Working on it, thanks guys :smile:

nionis commented 8 years ago

hey do u know when its gonna be available at http://cdn.tmijs.org/js/latest/tmi.js ?

Schmoopiie commented 8 years ago

I'm planning to release 1.0.0-rc1 on sunday or monday, it won't be available as the latest version because it is a release candidate, so it will be available with http://cdn.tmijs.org/js/1.0.0-rc1/tmi.min.js

Thanks!

Schmoopiie commented 8 years ago

@nionis Just a heads up, tmi.js 1.0.0-rc1 has been released https://www.tmijs.org/forums/index.php?/topic/80-released-v100-rc1/

nionis commented 8 years ago

@Schmoopiie thanks for the heads up! :)