🐛 Bug fix in blackjack

This commit is contained in:
NikolajDanger
2021-04-02 20:58:44 +02:00
parent 41bc121a91
commit a8c982e066

View File

@ -173,7 +173,7 @@ class Blackjack():
# When players try to hit
async def hit(self, ctx, handNumber = 0):
try:
ctx.defer()
await ctx.defer()
except:
self.bot.log("Defer failed")
channel = str(ctx.channel_id)
@ -199,7 +199,7 @@ class Blackjack():
elif hand["standing"]:
logMessage = "They're already standing"
sendMessage = "You can't hit when you're standing"
else
else:
hand["hand"].append(self.drawCard(channel))
hand["hit"] = True
@ -468,7 +468,7 @@ class Blackjack():
# Player enters the game and draws a hand
async def playerDrawHand(self, ctx, bet : int):
try:
ctx.defer()
await ctx.defer()
except:
self.bot.log("Defer failed")
channel = str(ctx.channel_id)