Changed
This commit is contained in:
@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user