diff --git a/main.py b/main.py index 24e1c79..6a499b5 100644 --- a/main.py +++ b/main.py @@ -139,8 +139,8 @@ async def dog(message): response = requests.get("https://dog.ceo/api/breeds/image/random") if response.status_code == 200: data = response.json() - if data and isinstance(data, list) and "url" in data[0]: - await message.channel.send(data[0]["url"]) + if data and isinstance(data, list) and "message" in data[0]: + await message.channel.send(data[0]["message"]) else: await message.channel.send("Could not fetch dog image") else: @@ -151,8 +151,8 @@ async def fox(message): response = requests.get("https://randomfox.ca/floof/") if response.status_code == 200: data = response.json() - if data and isinstance(data, list) and "url" in data[0]: - await message.channel.send(data[0]["url"]) + if data and isinstance(data, list) and "image" in data[0]: + await message.channel.send(data[0]["image"]) else: await message.channel.send("Could not fetch fox image") else: