Ledger reset bug fixed

This commit is contained in:
2023-06-12 11:19:03 +10:00
parent e8c1fbb73b
commit 5dbc250a4a
5 changed files with 3 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ async def bj(interaction: discord.Interaction):
discinput = lambda m: discordInput(interaction, m)
discoutput = lambda m: discordOutput(interaction, m)
await interaction.response.send_message("Let's play Black Jack!")
await blackJack.play_game(interaction.user.id, 100, discinput, discoutput)
await blackJack.play_game(interaction.user.id, interaction.message, discinput, discoutput)
async def discordInput(interaction: discord.Interaction, message:str):
response = HitOrStand()

View File

@@ -18,6 +18,8 @@ class Database():
data = [data[i] + newData[i] for i in range(len(data))]
data.append(ID)
self.data.execute(updateQuery, data)
self.db.commit()
class Ledger(Database):
def __init__(self) -> None:

Binary file not shown.

BIN
ledger.db

Binary file not shown.

Binary file not shown.