This commit is contained in:
Nikolaj Danger
2020-08-03 18:09:32 +02:00
parent cb2df5e87a
commit b3c2cd56f2
6 changed files with 5 additions and 6 deletions

View File

@ -8,7 +8,7 @@ def checkBalance(user):
logThis("checking "+user+"'s account balance")
with open("resources/games/games.json", "r") as f:
data = json.load(f)
if user in data["users"]:
return data["users"][user]
else: return 0