Updated the bot to also be able to random cards from specific sets

This commit is contained in:
Caleb Fultz 2024-08-03 20:17:32 -04:00
parent 44519e8520
commit d2545867be

View File

@ -25,7 +25,7 @@ mastodon = Mastodon(
card = loads(get(f"https://api.scryfall.com/cards/{setname}/{cardid}").text)
# This is the actual random card:
card = loads(get(f"https://api.scryfall.com/cards/random?format=image.json").text)
card = loads(get(f"https://api.scryfall.com/cards/random?format=image.json").text)
# Get the image URL
img_url = card['image_uris']['large']