This commit is contained in:
Yamozha
2021-02-04 00:04:26 +02:00
parent 91e0557b20
commit 98f8b51a42
3 changed files with 11 additions and 5 deletions

View File

@ -26,7 +26,9 @@ async def serveStuff(websocket, path):
# bad way to send balance to given user - FIX!!!
elif requestText == "STATUSONUSER":
name, balance = checkBalance("1")
await websocket.send(balance)
print(name)
await websocket.send(f"Your balance is: {balance}")
await websocket.send(f"Welcome, {name}!")
else:
await websocket.send("We don't accept DoS")