tmijs / tmi.js

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

Feature Request :) #309

Closed bashduude closed 5 years ago

bashduude commented 5 years ago

Hi, Would be cool to see some new events in tmijs library. Like follow/subscriber events :) Like same principle you already have: client.on("follow", function (channel, userstate, message, self) { // if somebody just followed the channel }); Same with "subscribe" and "channel change". "Notifies when a stream changes; e.g., stream goes online or offline, the stream title changes, or the game changes."

Got those from https://dev.twitch.tv/docs/api/webhooks-reference/.

Btw thank you for your work! Make life much easier with no need to setup IRC stuff :)

AlcaDesign commented 5 years ago

tmi.js is just for the IRC connection. The stuff in Webhooks is not IRC. tmi.js cannot handle your Webhooks or PubSub events. There's no follow, equivalent user/stream change, nor analytic events that come through IRC. Webhook requires an HTTP server (or some cloud function service) and PubSub is a separate connection from the IRC. These are out of scope for this library,

Check out twitch-pubsub-client for PubSub and maybe twitch-webhook for Webhook.