professor-l / classic-tetris-project

A Discord and twitch bot for Classic Tetris Monthly
MIT License
23 stars 23 forks source link

Youtube livestream support #113

Open fractal161 opened 1 month ago

fractal161 commented 1 month ago

A large portion of the classic tetris audience now watches content through youtube livestreams, so it would be great if they could also use the bot.

fractal161 commented 4 weeks ago

Some notes on what this would entail:

Reading for later:

michaelelin commented 2 weeks ago

API seems pretty simple.

The only method for reading chat seems to be polling-based based on how the api looks. I'm not sure of the best way to handle this, but I think async should suffice?

Yeah, running an async thread for each stream seems reasonable. It seems like we just need some mechanism for starting/stopping those threads based on which of those streams are live (and then maybe some model for YouTube channels so we can store which ones the bot should listen to).

What's the process for adding a new YouTube channel to the bot?