From d2545867be21bded2c8b1433b61a6a3853c82fc2 Mon Sep 17 00:00:00 2001 From: Caleb Fultz Date: Sat, 3 Aug 2024 20:17:32 -0400 Subject: [PATCH] Updated the bot to also be able to random cards from specific sets --- MTGMastodonBot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MTGMastodonBot.py b/MTGMastodonBot.py index 4057001..746c75e 100644 --- a/MTGMastodonBot.py +++ b/MTGMastodonBot.py @@ -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']