Imitation is the sincerest form of flattery, right? As you may or may not know, Sites with Benefits uses an optional Twitch IRC bot to reward points as people watch the stream. One of Sites with benefits users asked for the ability to have viewers request and play songs in exchange for points.
Nightbot, the most popular (I think) Twitch bot already has this functionality. So I did some reading and learned enough to guess how they did it. Basically, they use a website to play the youtube videos in the background. Since Sites with Benefits is web-based, I did the same.
Viewers can now queue up songs through the Twitch bot. They are sent to a special server page which the streamer has open. The page automatically plays the youtube videos in the background and voila, song requests are in. It was a fun project, even if it only took me a few hours to implement.
As always, if you want to use Sites with Benefits drop me a line and I'll get you all setup.
Going Backwards To Go Forwards
12 hours ago