Skip to content

animals is broken unless api key is set #7

@the-tuxedo-cat

Description

@the-tuxedo-cat

TL;DR random.cat's API returns a 503 for some reason, and unless an API key is set for thecatapi.com, the command just flat out breaks. Created a fork to fix this by just flat out disabling the default meow command like so:

# async with self.bot.session.get("http://aws.random.cat/meow") as r:
# cat = (await r.json())["file"]
embed = discord.Embed(title=":x: API Broken")
embed.description("The default cat API is down. In the meantime, use {prefix}help meow for more info.")
#embed.set_image(url=cat)

Can be viewed in my fork here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions