Cog-Creators / Red-DiscordBot

A multi-function Discord bot
https://docs.discord.red
GNU General Public License v3.0
4.83k stars 2.3k forks source link

[Streams] Add game whitelist #2356

Open JaL-P opened 5 years ago

JaL-P commented 5 years ago

Feature request

Cog: Streams

Feature Request: A command/s would allow to filter streams via the game they are playing.

Example;

[p]streamalert [platform] [channel] [game]

     - Filter Stream alert by game per channel

[p]streamalert [platform] [community] [game]

     - Filter Stream alert by game per community

As far as I am aware there is only one other bot out there that does this, I believe it would make a great addition to the Streams cog and Red Bot in general.

Tobotimus commented 5 years ago

Hi, I think this would be a great feature - adding to be included in 3.1.

palmtree5 commented 5 years ago

I'm assigning this to myself to work on, though I'm not planning to include Twitch communities in this as that functionality is pending removal (see #2223 for the PR doing that and a brief explanation of why)

palmtree5 commented 5 years ago

Ok, status report:

Went through each of the supported services to see the feasibility:

Service Possible Notes
Twitch Yes Probably will be 2 API calls the first time requesting a game and would store after that (seems the game name needs to be an exact match though)
Mixer Yes Seems like it's part of the result for the live stream
Smashcast (still referred to as Hitbox in our code) Yes Again, 2 API calls at first then store, though in this case it seems the game name doesn't necessarily have to be an exact match
Picarto No The API docs don't mention a way to get the game being played, not to mention the UI doesn't even seem to contain anything mentioning the game being played
Youtube No TBH Google's API docs can be somewhat confusing but I also did a quick search and didn't find anything indicating a way to get the game out of the API even though it's possible to see what game is being played in the interface

So it looks like 3/5 here

Edit: 1/3 now that neither Mixer nor Smashcast exists anymore.

josephrooks commented 4 months ago

The ability to only announce streams if they have something specific in the stream title or tags would also be helpful, as an extension of this. For example, I'd like to use Red to announce people streaming for specific charities, but not all of their streams will be raising money for those charities, so the ability to filter by "Jude" or "Starlight" for St. Jude Children's Research Hospital or Starlight Children's Foundation supporting streams among the tracked list of streamers would be very helpful.

palmtree5 commented 4 months ago

The ability to only announce streams if they have something specific in the stream title or tags would also be helpful, as an extension of this. For example, I'd like to use Red to announce people streaming for specific charities, but not all of their streams will be raising money for those charities, so the ability to filter by "Jude" or "Starlight" for St. Jude Children's Research Hospital or Starlight Children's Foundation supporting streams among the tracked list of streamers would be very helpful.

This might be something worth looking into, but it's outside the scope of this issue. If you would, please open a new feature request for this