mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 18:23:12 +00:00
Additions to /stats all
This commit is contained in:
parent
c8e3708b7e
commit
35800e3a85
2 changed files with 6 additions and 3 deletions
|
@ -35,5 +35,5 @@
|
|||
"stats_all_blackjack": "BlackJack Stats",
|
||||
"stats_all_gambling_value": "**{0}** - # of games\n**{1}** - wins (#)\n**{2}** - losses (#)\n**{3}%** - ROI ($)",
|
||||
"stats_all_gambling_value2": "Racu has logged **{0}** games.\n**{1}** of those were won by players!\nThe dealer beat you in **{2}** games.\nReturn of investment: **{3}%**",
|
||||
"stats_all_gambling_value3": "Games played: **{0}**\nGames won: **{1}**\nGames lost: **{2}**\nProfit margin: **{3}**%"
|
||||
"stats_all_gambling_value3": "Games played: **{0}**\nGames won: **{1}**\nGames lost: **{2}**\nTotal bets/payouts: `${3}` / `${4}`\nProfit margin: **{5}**%"
|
||||
}
|
|
@ -38,7 +38,8 @@ class Stats(commands.Cog):
|
|||
(bj_total_investment, bj_total_payout) = BlackJackStats.get_investment_and_payout()
|
||||
|
||||
# calculate data
|
||||
ROI = ((bj_total_payout - bj_total_investment) / bj_total_investment) * 100
|
||||
roi = ((bj_total_payout - bj_total_investment) / bj_total_investment) * 100
|
||||
roi = round(roi, 2)
|
||||
|
||||
# output
|
||||
embed = discord.Embed(
|
||||
|
@ -49,7 +50,9 @@ class Stats(commands.Cog):
|
|||
bj_games_amount,
|
||||
bj_winning_games_amount,
|
||||
bj_losing_games_amount,
|
||||
ROI
|
||||
bj_total_investment,
|
||||
bj_total_payout,
|
||||
roi
|
||||
))
|
||||
|
||||
await ctx.respond(embed=embed)
|
||||
|
|
Loading…
Reference in a new issue