mirror of
https://github.com/cfultz/MTGRandomScryfallBot.git
synced 2024-11-24 00:50:03 +01:00
Updated the bot to also be able to random cards from specific sets
This commit is contained in:
parent
44519e8520
commit
d2545867be
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user