Cog-Creators / Red-DiscordBot

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

[Streams] Add alert support when going live in voice channels #4699

Open TheWyn opened 3 years ago

TheWyn commented 3 years ago

Describe your requested feature

Add stream alert support for people "Going Live" in a discord voice channel.

Reference: https://discordpy.readthedocs.io/en/latest/api.html?highlight=stream#discord.VoiceState.self_stream

palmtree5 commented 3 years ago

I'll take this one.

A couple questions though:

How deep are we wanting to go with this? Are we wanting this to just be a toggle per-server (since the ability to "Go Live" can be controlled via the Video permission for a voice channel) or are we wanting it to be able to be drilled down to specific users/roles outside of that?

TheWyn commented 3 years ago

Toggle per guild to use guild specific roles for announcing someone is live within there guild. There wouldn't be a point announcing it globally since you would need to be in the guild to view it.

palmtree5 commented 3 years ago

ok, so notify when users with specific roles that this has been enabled for go live? Just making sure I understand this correctly

TheWyn commented 3 years ago

If a person has gone live in there guilds voice channel (Meaning started streaming there game), announce it to a specified role in the guild.

palmtree5 commented 3 years ago

Gotcha, announce when someone goes live on Discord, mentioning any configured roles (including everyone/here). I'll work on this sometime soon as it shouldn't be too difficult to implement.

TheWyn commented 3 years ago

Please ping me on discord if you need a tester