Blackjack ledger works
This commit is contained in:
@@ -98,11 +98,10 @@ async def discordOutput(interaction: discord.Interaction, message):
|
||||
|
||||
@tree.command(description="Find your Balance")
|
||||
async def bal(interaction: discord.Interaction):
|
||||
conn = sqlite3.connect("ledger.db")
|
||||
cur = conn.cursor()
|
||||
ID = interaction.user.id
|
||||
data = cur.execute("SELECT * FROM ledger WHERE USERID = ?", (ID,))
|
||||
await interaction.response.send_message(data)
|
||||
data = blackJack.ledger.read(ID)
|
||||
data = list(data)
|
||||
await interaction.response.send_message(f"Wins:{data[2]}, Losses:{data[3]}. ${data[1]}")
|
||||
|
||||
"""
|
||||
#### Calculator ####
|
||||
|
||||
Reference in New Issue
Block a user