Ledger reset bug fixed
This commit is contained in:
@@ -85,7 +85,7 @@ async def bj(interaction: discord.Interaction):
|
|||||||
discinput = lambda m: discordInput(interaction, m)
|
discinput = lambda m: discordInput(interaction, m)
|
||||||
discoutput = lambda m: discordOutput(interaction, m)
|
discoutput = lambda m: discordOutput(interaction, m)
|
||||||
await interaction.response.send_message("Let's play Black Jack!")
|
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):
|
async def discordInput(interaction: discord.Interaction, message:str):
|
||||||
response = HitOrStand()
|
response = HitOrStand()
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ class Database():
|
|||||||
data = [data[i] + newData[i] for i in range(len(data))]
|
data = [data[i] + newData[i] for i in range(len(data))]
|
||||||
data.append(ID)
|
data.append(ID)
|
||||||
self.data.execute(updateQuery, data)
|
self.data.execute(updateQuery, data)
|
||||||
|
self.db.commit()
|
||||||
|
|
||||||
|
|
||||||
class Ledger(Database):
|
class Ledger(Database):
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user