🖌️ Added stuff to the blackjack drawing
This commit is contained in:
11
Gwendolyn.py
11
Gwendolyn.py
@ -322,7 +322,7 @@ async def on_message(message):
|
||||
|
||||
new_message = "Blackjack game started. Use \"!blackjack bet [amount]\" to enter the game within the next 30 seconds."
|
||||
await message.channel.send(new_message)
|
||||
await message.channel.send(file = discord.File("resources/games/tables/blackjackTable"+str(message.channel)+".png"))
|
||||
old_image = await message.channel.send(file = discord.File("resources/games/tables/blackjackTable"+str(message.channel)+".png"))
|
||||
|
||||
await asyncio.sleep(30)
|
||||
|
||||
@ -336,9 +336,11 @@ async def on_message(message):
|
||||
|
||||
while gamedone == False:
|
||||
new_message, allStanding, gamedone = funcs.blackjackContinue(str(message.channel))
|
||||
await message.channel.send(new_message)
|
||||
if new_message != "":
|
||||
await message.channel.send(new_message)
|
||||
if gamedone == False:
|
||||
await message.channel.send(file = discord.File("resources/games/tables/blackjackTable"+str(message.channel)+".png"))
|
||||
await old_image.delete()
|
||||
old_image = await message.channel.send(file = discord.File("resources/games/tables/blackjackTable"+str(message.channel)+".png"))
|
||||
if allStanding:
|
||||
await asyncio.sleep(5)
|
||||
else:
|
||||
@ -355,10 +357,11 @@ async def on_message(message):
|
||||
commands = message.content.lower().split(" ")
|
||||
try:
|
||||
amount = int(commands[2])
|
||||
response = funcs.blackjackPlayerDrawHand(str(message.channel),message.author.name,amount)
|
||||
except:
|
||||
funcs.logThis("I didn't understand that")
|
||||
response = "I didn't understand that"
|
||||
else:
|
||||
response = funcs.blackjackPlayerDrawHand(str(message.channel),message.author.name,amount)
|
||||
await message.channel.send(response)
|
||||
|
||||
if message.content.lower().startswith("!blackjack hit"):
|
||||
|
Reference in New Issue
Block a user