From 3343d644229b465f767c2855e92d18494e2adc89 Mon Sep 17 00:00:00 2001 From: Thomas Mercurio Date: Mon, 17 Jun 2024 23:26:14 -0700 Subject: [PATCH] fix(Randimals): remove raccoon --- randimals/randimals.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/randimals/randimals.py b/randimals/randimals.py index 28145e6..24a54b3 100644 --- a/randimals/randimals.py +++ b/randimals/randimals.py @@ -232,24 +232,6 @@ async def fetcher() -> str: log.warning("API call failed; unable to get kangaroo picture") await ctx.send("I was unable to get a kangaroo picture.") - @commands.hybrid_command() - async def raccoon(self, ctx: commands.Context) -> None: - """Get a random raccoon.""" - - await ctx.typing() - - async def fetcher() -> str: - url = "https://some-random-api.com/animal/raccoon" - async with self.__session.get(url) as response: - return (await response.json())["image"] - - try: - file = await self.__get_image_carefully(fetcher) - await ctx.send(file=file) - except (aiohttp.ClientError, RetryLimitExceeded): - log.warning("API call failed; unable to get raccoon picture") - await ctx.send("I was unable to get a raccoon picture.") - @commands.hybrid_command() async def redpanda(self, ctx: commands.Context) -> None: """Get a random red panda."""