Added emojis for better output
This commit is contained in:
parent
ca4675c62f
commit
05226f16d2
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue