Add session crowns

This commit is contained in:
LoveEevee
2020-03-16 22:49:18 +03:00
parent 47b769c8b3
commit 29fb7845ed
4 changed files with 165 additions and 38 deletions

View File

@@ -283,6 +283,12 @@ async def connection(ws, path):
ws.send(sent_msg),
user["other_user"]["ws"].send(sent_msg)
])
elif type == "crowns" or type == "getcrowns":
if user["other_user"]["action"] == "songsel":
sent_msg = msgobj(type, value)
await asyncio.wait([
user["other_user"]["ws"].send(sent_msg)
])
elif type == "join":
# Start game
if value == None: