shadowrunners/Evelyn

feat: twitch notifications (+ yt notifications?)

Opened this issue · 0 comments

Twitch Notifications (+ also YT notifications for videos & streams?)

It wouldn't be that hard to implement nor time consuming to implement and would perhaps be replicated for YouTube as well. Entire implementation would consist of getting the latest stream from that specific channel and storing the latest stream ID in the DB. Would be cool to see.

To Do

  • Register the app over on the Twitch Developer Dashboard.
  • Add Twitch OAuth token & secret to config.
  • Add schema for Twitch configuration (should contain an array of added streamers and an array with their name and current stream ID).
  • Make a function that maps over followed streamers, contacts the Twitch API and compares the old stream ID with the new stream ID. If the new stream ID isn't equal to the old stream ID, then send the notification.
  • Make the function update the stream ID after the notification was delivered and make it run every 5-10 minutes.