WebHost: Add youtube livestreaming and autogenerated multistream link

This commit is contained in:
Fabian Dill
2020-07-25 22:40:24 +02:00
parent aacd5b4063
commit 5cd5223ae0
5 changed files with 35 additions and 7 deletions

View File

@@ -26,6 +26,11 @@ class CustomClientMessageProcessor(ClientMessageProcessor):
self.ctx.save()
self.output(f"Registered Twitch Stream https://www.twitch.tv/{user}")
return True
elif platform.lower().startswith("y"): # youtube
self.ctx.video[self.client.team, self.client.slot] = "Youtube", user
self.ctx.save()
self.output(f"Registered Youtube Stream for {user}")
return True
return False