Skip to content

Commit 14a8c05

Browse files
author
Kile
committed
🐛 Bugfix
1 parent df6b0fe commit 14a8c05

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

killua/cogs/economy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,10 @@ async def boxinfo(self, ctx: commands.Context, box: str):
479479
}
480480
)
481481
embed, file = await self.client.make_embed_from_api(
482-
embed,
483482
cast(str, data["image"]).format(
484483
self.client.api_url(to_fetch=self.client.is_dev)
485484
),
485+
embed
486486
)
487487
await ctx.send(embed=embed, file=file)
488488

@@ -568,10 +568,10 @@ async def boosterinfo(self, ctx: commands.Context, booster: str):
568568
}
569569
)
570570
embed, file = await self.client.make_embed_from_api(
571-
embed,
572571
cast(str, data["image"]).format(
573572
self.client.api_url(to_fetch=self.client.is_dev)
574573
),
574+
embed,
575575
)
576576
await ctx.send(embed=embed, file=file)
577577

killua/cogs/games.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,16 @@ async def gstats(
12101210
await ctx.send(
12111211
embed=discord.Embed(
12121212
title=f"{user.display_name}'s Trivia stats",
1213-
description=f"__Overall correctness__: {win_rate_overall}%\n\n__Hard__:\nRight answers: {db_user.trivia_stats['hard']['right']}\nWrong answers: {db_user.trivia_stats['hard']['wrong']}\n{win_rate_hard}% correct\n\n__Medium__:\nRight answers: {db_user.trivia_stats['medium']['right']}\nWrong answers: {user.trivia_stats['medium']['wrong']}\n{win_rate_medium}% correct\n\n__Easy__:\nRight answers: {user.trivia_stats['easy']['right']}\nWrong answers: {user.trivia_stats['easy']['wrong']}\n{win_rate_easy}% correct",
1213+
description=f"__Overall correctness__: {win_rate_overall}%\n\n__Hard__:\n" +
1214+
f"Right answers: {db_user.trivia_stats['hard']['right']}\n" +
1215+
f"Wrong answers: {db_user.trivia_stats['hard']['wrong']}\n" +
1216+
f"{win_rate_hard}% correct\n\n__Medium__:\n" +
1217+
f"Right answers: {db_user.trivia_stats['medium']['right']}\n" +
1218+
f"Wrong answers: {db_user.trivia_stats['medium']['wrong']}\n" +
1219+
f"{win_rate_medium}% correct\n\n__Easy__:\n" +
1220+
f"Right answers: {db_user.trivia_stats['easy']['right']}\n" +
1221+
f"Wrong answers: {db_user.trivia_stats['easy']['wrong']}\n" +
1222+
f"{win_rate_easy}% correct",
12141223
color=0x3E4A78,
12151224
)
12161225
)

0 commit comments

Comments
 (0)