This commit is contained in:
NikolajDanger
2020-07-29 23:19:53 +02:00
parent de45a7364a
commit 782eefe72d

View File

@@ -49,6 +49,7 @@ async def blackjackLoop(channel,gameRound):
if gameRound == realRound: if gameRound == realRound:
if gamedone == False: if gamedone == False:
logThis("Loop "+str(gameRound)+" calling blackjackLoop()")
await blackjackLoop(channel,gameRound+1) await blackjackLoop(channel,gameRound+1)
else: else:
new_message = blackjackFinish(str(channel)) new_message = blackjackFinish(str(channel))
@@ -444,6 +445,7 @@ async def parseCommands(message,content):
# Loop of game rounds # Loop of game rounds
if gamedone == False: if gamedone == False:
logThis("!blackjack calling blackjackLoop()")
await blackjackLoop(message.channel,1) await blackjackLoop(message.channel,1)
else: else:
new_message = blackjackFinish(str(message.channel)) new_message = blackjackFinish(str(message.channel))
@@ -479,6 +481,7 @@ async def parseCommands(message,content):
await message.add_reaction("👍") await message.add_reaction("👍")
try: try:
if response[6] == "T": if response[6] == "T":
logThis("Hit calling blackjackLoop()")
await blackjackLoop(message.channel,int(response[7:])+1) await blackjackLoop(message.channel,int(response[7:])+1)
except: except:
logThis("Something fucked up") logThis("Something fucked up")
@@ -495,6 +498,7 @@ async def parseCommands(message,content):
await message.add_reaction("👍") await message.add_reaction("👍")
try: try:
if response[6] == "T": if response[6] == "T":
logThis("Stand calling blackjackLoop()")
await blackjackLoop(message.channel,int(response[7:])+1) await blackjackLoop(message.channel,int(response[7:])+1)
except: except:
logThis("Something fucked up") logThis("Something fucked up")
@@ -515,6 +519,7 @@ async def parseCommands(message,content):
try: try:
if roundDone[0] == "T": if roundDone[0] == "T":
logThis("Double calling blackjackLoop()")
await blackjackLoop(message.channel,int(roundDone[1:])+1) await blackjackLoop(message.channel,int(roundDone[1:])+1)
except: except:
logThis("Something fucked up") logThis("Something fucked up")
@@ -528,6 +533,7 @@ async def parseCommands(message,content):
#try: #try:
if roundDone[0] == "T": if roundDone[0] == "T":
logThis("Split calling blackjackLoop()")
await blackjackLoop(message.channel,int(roundDone[1:])+1) await blackjackLoop(message.channel,int(roundDone[1:])+1)
#except: #except:
# logThis("Something fucked up") # logThis("Something fucked up")