easter egg for people who try to put in something too long

This commit is contained in:
Holly 2021-03-10 03:28:59 +00:00
parent 81244e2190
commit 93d0c363ad
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@ async def get_cards(card_names):
for name in card_names: for name in card_names:
try: try:
c = scrython.cards.Named(fuzzy=name[:499]) if len(name) > 141:
c = scrython.cards.Named(fuzzy='Our Market Research Shows That Players Like Really Long Card Names So We Make This Card to Have The Absolute Longest Card Name Ever Elemental')
else:
c = scrython.cards.Named(fuzzy=name)
cards.append(c) cards.append(c)
responses.append(f'{c.name()} - {c.scryfall_uri()}') responses.append(f'{c.name()} - {c.scryfall_uri()}')
except scrython.foundation.ScryfallError: except scrython.foundation.ScryfallError: