From 6b27e4ae15e5ff8604dcab6f7dcee40334f996e2 Mon Sep 17 00:00:00 2001 From: Katlyn Lorimer Date: Fri, 19 Jan 2024 11:53:37 -0900 Subject: [PATCH] fix: move to new random cat API --- src/commands/fun/images.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/fun/images.ts b/src/commands/fun/images.ts index 4485e29..dbdd987 100644 --- a/src/commands/fun/images.ts +++ b/src/commands/fun/images.ts @@ -4,13 +4,13 @@ import fetch from 'node-fetch' export const init = (bot: CommandClient): void => { bot.registerCommand('cat', async msg => { try { - const req = await fetch('https://aws.random.cat/meow') + const req = await fetch('https://cataas.com/cat?json=true') if (req.ok) { const randomKitty = await req.json() await msg.channel.createMessage({ embed: { image: { - url: randomKitty.file + url: `https://cataas.com/cat/${randomKitty._id}` } } })