gr2m / helpdesk

Answering all your GitHub API/automation questions live on Twitch
https://twitch.tv/gregorcodes
Creative Commons Zero v1.0 Universal
22 stars 11 forks source link

πŸ“… 10/21 @ 10:00am PT - Automating gr2m/helpdesk: Twitch Events #52

Closed gr2m closed 2 years ago

gr2m commented 3 years ago

πŸ’πŸ» Automating gr2m/helpdesk: Twitch Events πŸ“… Thursday, October 21, 2021 πŸ• 10:00am Pacific Time πŸŽ™οΈ no guests πŸ“ https://www.twitch.tv/gregorcodes 🏷️ automation


Subscribe to this issues to get a notification before the show begins and a summary after the show concludes.

Automating gr2m/helpdesk: πŸ“… 10/21 @ 10:00am PT - Automating gr2m/helpdesk: Twitch Events

Instead of using a schedule-based trigger for when a show starts, I'll start using webhooks sent from Twitch itself, whenever I start a stream.

Outline

Bonus

TODOs

Before the show

I already setup the Netlify function and the twitch subscription in the gr2m/helpdesk. I'll prepare the pieces so we can create a new repository from scratch step-by-step.

When show begins

After the show

Recording

screenshot of YouTube video player showing the recording of this episode

Shownotes

gr2m commented 2 years ago

Going live in 30 minutes at https://twitch.tv/gregorcodes

gr2m commented 2 years ago

I'm now live on https://twitch.tv/gregorcodes

gr2m commented 2 years ago

Show is done for today, thank you all! Recording is coming up in a moment

gr2m commented 2 years ago

Recording is now live, I've also updated the shownotes

screenshot of YouTube video player showing the recording of this episode

Regarding the "Handle show done" workflow, that used the "issues.closed" trigger and is now using the "twitch.stream.offline" event: it didn't work 🀷🏼 The reason is that the payload the issues event has an .issue key which is all properties from the issue that was closed. That information is not available when using the repository_dispatch event, so I have to update the script to load the issue data for the current show manually.