kihashi / mtg-irc

A module for the IRC Bot Phenny that allows users to query magic cards.
3 stars 1 forks source link

Ping channel when Twitch streams go live #3

Closed spencerjanssen closed 11 years ago

spencerjanssen commented 12 years ago

When certain channels go live (such as scglive or magicprotour), the bot could ping the channel with the stream URL.

Twitch can be configured to send an email when a followed stream goes live. This functionality might be in the Twitch API as well.

kihashi commented 12 years ago

Twitch does provide an API. We just need to figure out the best way to get notifications pushed to us or else have the bot ping the api at intervals.

kihashi commented 12 years ago

I have made a post about this on the Twitch API developer list.

https://groups.google.com/forum/?fromgroups=#!topic/twitch-api/6FdagfuaN3A

kihashi commented 12 years ago

From feedback, might want to check out: http://apiwiki.justin.tv/mediawiki/index.php/Stream/register_callback

kihashi commented 12 years ago

Response from Twitch:

Hey John -

Unfortunately, right now the only public (supported) way to do this is to have the bot check periodically, which is clearly suboptimal.

We have an internal API that lets you listen for "stream up" on a specific stream, but there's no public counterpart yet for you to use.

Can you open an issue on our tracker? https://github.com/justintv/twitch-api/issues

Thanks, Emmett