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

@ -521,7 +521,7 @@ def blackjackSplit(channel,user,handNumber = 0):
if handValue > 21:
hand["busted"] = True
elif handValue == 21:
han["blackjack"] = True
hand["blackjack"] = True
if otherHandValue > 21:
newHand["busted"] = True

View File

@ -1,4 +1,4 @@
import json, random
import json
from PIL import Image, ImageDraw, ImageFont

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