🐛
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import random
|
||||
import json
|
||||
import math
|
||||
import datetime
|
||||
|
||||
from shutil import copyfile
|
||||
|
||||
@ -517,8 +518,9 @@ def blackjackStart(channel:str):
|
||||
if channel not in data["blackjack games"]:
|
||||
|
||||
dealerHand = [drawCard(),drawCard()]
|
||||
gameID = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
|
||||
|
||||
data["blackjack games"][channel] = {"dealer hand": dealerHand,"dealer busted":False,"dealer blackjack":False,"user hands": {},"all standing":False,"round":0}
|
||||
data["blackjack games"][channel] = {"dealer hand": dealerHand,"dealer busted":False,"dealer blackjack":False,"user hands": {},"all standing":False,"round":0,"id":gameID}
|
||||
|
||||
if calcHandValue(dealerHand) == 21:
|
||||
data["blackjack games"][channel]["dealer blackjack"] = True
|
||||
|
Reference in New Issue
Block a user