Making my Twitch stream easier to manage.
Abdolah Pouriliaee
Scalable, sustainable teams and technology | Some nice people call me a leader.
As a Twitch streamer streaming Dungeons & Dragons, I have a habit of forgetting to set my stream title. It seems silly, but amidst all the other prep work I do each session, it can fall to the way side.
To address this, I built myself a title scheduler and figured I'd make it an open feature for folks, so I adjusted some permissions, took some time to clean up a bit of CSS and now have it sitting open to any who wish to make use of it.
Rather than set up an entirely new website for this, I started hacking together a pair of modules to robust the HybridAuth module I had been using to provide the Twitch authorization on my website to begin with.
Afterwards, I set up the content types for a scheduled title change and string replacements that users could add.
It's a simple enough system, but one that didn't seem to exist anywhere else.
Handling the schedule is the Date and Repeat API; given the potential for load on the system, I added some validation code to prevent the repeat from accepting more than 100 entries per scheduled title.
Potential improvements I'll hope to write in the near include repeating an event on its own, 1 repeat at a time as opposed to creating entries for each repeat. For now, the default method works for my needs. Another improvement would be to add a Games dropdown so folks can have their game set; however, a lot of streaming tools actually support this through automated means and I personally only ever stream Dungeons & Dragons, hence a Games dropdown may really be a moot point.
In the end, it's working well, updating my Twitch status and ensuring I'll not forget to do it again. At least, until July 2020 :)
Thanks for taking the time to read through; as a digital mechanic, I love talking about ideas <3