🧹 Cleaning up blackjack commands

This commit is contained in:
Nikolaj Danger
2021-04-02 18:23:58 +02:00
parent aff29a8d91
commit 33eedf8981
2 changed files with 113 additions and 123 deletions

View File

@ -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):