implement option changing

This commit is contained in:
Fabian Dill
2020-06-27 14:16:51 +02:00
parent e3c18be288
commit 12120ac995
2 changed files with 22 additions and 11 deletions

View File

@@ -17,10 +17,13 @@ from Utils import get_public_ipv4, get_public_ipv6
class CustomClientMessageProcessor(ClientMessageProcessor):
def _cmd_video(self, platform, user):
"""Set a link for your name in the WebHost tracker pointing to a video stream"""
if platform.lower().startswith("t"): # twitch
self.ctx.video[self.client.team, self.client.slot] = "Twitch", user
self.ctx.save()
self.output(f"Registered Twitch Stream https://www.twitch.tv/{user}")
return True
return False
# inject