🐛
This commit is contained in:
@ -521,7 +521,7 @@ def blackjackSplit(channel,user,handNumber = 0):
|
|||||||
if handValue > 21:
|
if handValue > 21:
|
||||||
hand["busted"] = True
|
hand["busted"] = True
|
||||||
elif handValue == 21:
|
elif handValue == 21:
|
||||||
han["blackjack"] = True
|
hand["blackjack"] = True
|
||||||
|
|
||||||
if otherHandValue > 21:
|
if otherHandValue > 21:
|
||||||
newHand["busted"] = True
|
newHand["busted"] = True
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import json, random
|
import json
|
||||||
|
|
||||||
from PIL import Image, ImageDraw, ImageFont
|
from PIL import Image, ImageDraw, ImageFont
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ def checkBalance(user):
|
|||||||
logThis("checking "+user+"'s account balance")
|
logThis("checking "+user+"'s account balance")
|
||||||
with open("resources/games/games.json", "r") as f:
|
with open("resources/games/games.json", "r") as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
|
|
||||||
if user in data["users"]:
|
if user in data["users"]:
|
||||||
return data["users"][user]
|
return data["users"][user]
|
||||||
else: return 0
|
else: return 0
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import math
|
import math
|
||||||
import discord
|
#import discord
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from funcs import cap, logThis
|
from funcs import cap, logThis
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import numpy as np
|
#import numpy as np
|
||||||
import random
|
import random
|
||||||
|
|
||||||
from funcs import logThis
|
from funcs import logThis
|
||||||
|
@ -2,7 +2,6 @@ import random
|
|||||||
import re
|
import re
|
||||||
import string
|
import string
|
||||||
import json
|
import json
|
||||||
import os
|
|
||||||
|
|
||||||
from . import swchar
|
from . import swchar
|
||||||
from funcs import logThis
|
from funcs import logThis
|
||||||
|
Reference in New Issue
Block a user