Bold and truncate the boss spawn percents
Some checks failed
Build and push / Build-and-Push-Docker (push) Blocked by required conditions
Build and push / sync-argocd-app (push) Blocked by required conditions
Build and push / changes (push) Successful in 4s
Build and push / Lint-Python (push) Has been cancelled

This commit is contained in:
Luke R 2024-11-04 08:50:01 -08:00
parent 0b457ab7f2
commit 23a2daecfa

View File

@ -208,9 +208,9 @@ class Tarkov(commands.Cog):
for key, value in levels.items():
embed.add_field(
name=key,
value="\n".join(f"{k}: `{v*100}%`" for k, v in value.items()).replace(
"boss", ""
),
value="\n".join(
f"{k}: **{str(round(v*100, 2))}%**" for k, v in value.items()
).replace("boss", ""),
inline=False,
)
@ -271,7 +271,7 @@ class Tarkov(commands.Cog):
.text.split("%")
)
embed.add_field(name="Spawn Chance", value=spawn_chance, inline=False)
embed.add_field(name="Spawn Chance", value=f"**{spawn_chance}**, inline=False)
await ctx.send_followup(embed=embed)