Added emojis for better output

This commit is contained in:
Pascal P. 2026-08-06 23:37:59 +02:00
parent ca4675c62f
commit 05226f16d2
2 changed files with 10 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class App:
packs_remaining, packs_last_regen_at, cards = user.pull() packs_remaining, packs_last_regen_at, cards = user.pull()
content = "" content = ""
for card in cards: for card in cards:
content += "- [%s] [%s](%s)\n" % (card.rarity, card.name, card.url) content += "- %s [%s](%s)\n" % (card.rarity.icon, card.name, card.url)
DiscordClient.send_message(content) DiscordClient.send_message(content)

View File

@ -23,6 +23,15 @@ class Rarity(StrEnum):
UltraRare = "UR" UltraRare = "UR"
Legendary = "L" Legendary = "L"
def icon(self) -> str:
return {
Self.Common: "",
Self.LessCommon: "🟢",
Self.Rare: "🔵",
Self.SuperRare: "🟣",
Self.UltraRare: "🟠",
Self.Legendary: "🌟",
}[self]
@dataclass @dataclass
class CardDataSubset: class CardDataSubset: