From b3c2cd56f2a6abddc9ea89c5fee7ccab099f10cb Mon Sep 17 00:00:00 2001 From: Nikolaj Danger Date: Mon, 3 Aug 2020 18:09:32 +0200 Subject: [PATCH] :bug: --- funcs/games/blackjack.py | 2 +- funcs/games/blackjackDraw.py | 2 +- funcs/games/money.py | 2 +- funcs/lookup/lookupFuncs.py | 2 +- funcs/other/generators.py | 2 +- funcs/swfuncs/swroll.py | 1 - 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/funcs/games/blackjack.py b/funcs/games/blackjack.py index a3d9be8..602d3ac 100644 --- a/funcs/games/blackjack.py +++ b/funcs/games/blackjack.py @@ -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 diff --git a/funcs/games/blackjackDraw.py b/funcs/games/blackjackDraw.py index 9c30901..b111a5d 100644 --- a/funcs/games/blackjackDraw.py +++ b/funcs/games/blackjackDraw.py @@ -1,4 +1,4 @@ -import json, random +import json from PIL import Image, ImageDraw, ImageFont diff --git a/funcs/games/money.py b/funcs/games/money.py index 3dd2911..5972630 100644 --- a/funcs/games/money.py +++ b/funcs/games/money.py @@ -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 diff --git a/funcs/lookup/lookupFuncs.py b/funcs/lookup/lookupFuncs.py index 6381340..1d64e3c 100644 --- a/funcs/lookup/lookupFuncs.py +++ b/funcs/lookup/lookupFuncs.py @@ -1,5 +1,5 @@ import math -import discord +#import discord import json from funcs import cap, logThis diff --git a/funcs/other/generators.py b/funcs/other/generators.py index 42fe1ed..0e0680f 100644 --- a/funcs/other/generators.py +++ b/funcs/other/generators.py @@ -1,4 +1,4 @@ -import numpy as np +#import numpy as np import random from funcs import logThis diff --git a/funcs/swfuncs/swroll.py b/funcs/swfuncs/swroll.py index cc71ba5..2f4a4d6 100644 --- a/funcs/swfuncs/swroll.py +++ b/funcs/swfuncs/swroll.py @@ -2,7 +2,6 @@ import random import re import string import json -import os from . import swchar from funcs import logThis