From 8615cc4d0d70eaabcc4a6847fc90ef9f61598b24 Mon Sep 17 00:00:00 2001 From: Michelle Date: Sat, 25 Apr 2026 16:43:32 +0200 Subject: [PATCH] fix: sorry i just copy pasted the cat command which didn't work --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: