🃏 Converted full blackjack functionality to slash commands

This commit is contained in:
NikolajDanger
2021-04-03 18:36:03 +02:00
parent edcf00039a
commit 0fb7887745
2 changed files with 56 additions and 59 deletions

View File

@ -39,8 +39,7 @@ class BlackjackCog(commands.Cog):
# Starts a game of blackjack
@cog_ext.cog_subcommand(**params["blackjackStart"])
async def blackjackStart(self, ctx):
await ctx.defer()
await self.bot.games.blackjack.parseBlackjack("", ctx)
await self.bot.games.blackjack.start(ctx)
@cog_ext.cog_subcommand(**params["blackjackBet"])
async def blackjackBet(self, ctx, bet):