🐛 Bug fix in blackjack
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user