diff --git a/Acronymbot.py b/Acronymbot.py index 26e9fa5..01d7c0a 100644 --- a/Acronymbot.py +++ b/Acronymbot.py @@ -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() diff --git a/Ledger.py b/Ledger.py index 8df1653..d965013 100644 --- a/Ledger.py +++ b/Ledger.py @@ -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: diff --git a/__pycache__/Ledger.cpython-310.pyc b/__pycache__/Ledger.cpython-310.pyc index 1f8cdbd..f239501 100644 Binary files a/__pycache__/Ledger.cpython-310.pyc and b/__pycache__/Ledger.cpython-310.pyc differ diff --git a/ledger.db b/ledger.db index 4a67600..f820787 100644 Binary files a/ledger.db and b/ledger.db differ diff --git a/ledger.db-journal b/ledger.db-journal deleted file mode 100644 index fe06286..0000000 Binary files a/ledger.db-journal and /dev/null differ