🧹 Cleaning up blackjack commands
This commit is contained in:
@ -44,8 +44,7 @@ class BlackjackCog(commands.Cog):
|
||||
|
||||
@cog_ext.cog_subcommand(**params["blackjackBet"])
|
||||
async def blackjackBet(self, ctx, bet):
|
||||
await ctx.defer()
|
||||
await self.bot.games.blackjack.parseBlackjack(f"bet {bet}", ctx)
|
||||
await self.bot.games.blackjack.playerDrawHand(ctx, bet)
|
||||
|
||||
@cog_ext.cog_subcommand(**params["blackjackStand"])
|
||||
async def blackjackStand(self, ctx, hand = ""):
|
||||
@ -53,9 +52,8 @@ class BlackjackCog(commands.Cog):
|
||||
await self.bot.games.blackjack.parseBlackjack(f"stand {hand}", ctx)
|
||||
|
||||
@cog_ext.cog_subcommand(**params["blackjackHit"])
|
||||
async def blackjackHit(self, ctx, hand = ""):
|
||||
await ctx.defer()
|
||||
await self.bot.games.blackjack.parseBlackjack(f"hit {hand}", ctx)
|
||||
async def blackjackHit(self, ctx, hand = 0):
|
||||
await self.bot.games.blackjack.hit(ctx, hand)
|
||||
|
||||
|
||||
class ConnectFourCog(commands.Cog):
|
||||
|
Reference in New Issue
Block a user