Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: twitch notifications (+ yt notifications?) #62

Open
5 tasks
notscrappie opened this issue Feb 3, 2024 · 0 comments
Open
5 tasks

feat: twitch notifications (+ yt notifications?) #62

notscrappie opened this issue Feb 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@notscrappie
Copy link
Collaborator

notscrappie commented Feb 3, 2024

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.
@notscrappie notscrappie added the enhancement New feature or request label Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant