This commit is contained in:
Nikolaj Danger
2020-08-06 14:16:27 +02:00
parent c18fe65607
commit 34d9c56489

View File

@ -180,7 +180,7 @@ class GamesCog(commands.Cog):
await ctx.send(response)
# Doubling bet
elif content.startswith("blackjack double"):
elif content.startswith("double"):
commands = content.split(" ")
try:
handNumber = int(commands[1])
@ -200,7 +200,7 @@ class GamesCog(commands.Cog):
logThis("Something fucked up (error code 1320)",str(channel))
# Splitting hand
elif content.startswith("blackjack split"):
elif content.startswith("split"):
commands = content.split(" ")
try:
handNumber = int(commands[1])
@ -220,7 +220,7 @@ class GamesCog(commands.Cog):
logThis("Something fucked up (error code 1320)")
# Returning current hi-lo value
elif content.startswith("blackjack hilo") and "#"+str(ctx.message.author.id) == "#266269899859427329":
elif content.startswith("hilo") and "#"+str(ctx.message.author.id) == "#266269899859427329":
if os.path.exists("resources/games/blackjackCards/"+str(channel)+".txt"):
with open("resources/games/hilo/"+str(channel)+".txt", "r") as f:
data = f.read()
@ -229,14 +229,14 @@ class GamesCog(commands.Cog):
await ctx.send(data)
# Shuffles the blackjack deck
elif content.startswith("blackjack shuffle"):
elif content.startswith("shuffle"):
blackjackShuffle(blackjackDecks,str(channel))
logThis("Shuffling the blackjack deck...",str(channel))
await ctx.send("Shuffling the deck...")
# Tells you the amount of cards left
elif content.startswith("blackjack cards"):
elif content.startswith("cards"):
cardsLeft = 0
if os.path.exists("resources/games/blackjackCards/"+str(channel)+".txt"):
with open("resources/games/blackjackCards/"+str(channel)+".txt","r") as f: