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