aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar brad90four <[email protected]>2021-08-31 08:12:12 -0400
committerGravatar brad90four <[email protected]>2021-08-31 08:12:12 -0400
commit2ffadc4941990e856b12887e3f456df72ac76aa5 (patch)
tree17461ae8df9be555cc77a158bbb3359327f24fcd
parentAdd requested changes (diff)
Update docstrings, ' -> ", code style
-rw-r--r--bot/exts/evergreen/status_codes.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/exts/evergreen/status_codes.py b/bot/exts/evergreen/status_codes.py
index 2395f581..c3eedfb1 100644
--- a/bot/exts/evergreen/status_codes.py
+++ b/bot/exts/evergreen/status_codes.py
@@ -8,8 +8,8 @@ from bot.bot import Bot
HTTP_DOG_URL = "https://httpstatusdogs.com/img/{code}.jpg"
HTTP_CAT_URL = "https://http.cat/{code}.jpg"
STATUS_TEMPLATE = "**Status: {code}**"
-ERR_404 = "Unable to find status Floof for {code}."
-ERR_UNKNOWN = "Error attempting to retrieve status Floof for {code}."
+ERR_404 = "Unable to find status floof for {code}."
+ERR_UNKNOWN = "Error attempting to retrieve status floof for {code}."
class HTTPStatusCodes(commands.Cog):
@@ -34,12 +34,12 @@ class HTTPStatusCodes(commands.Cog):
@http_status_group.command(name="cat")
async def http_cat(self, ctx: commands.Context, code: int) -> None:
- """Assemble Cat URL and build Embed."""
+ """Send a cat version of the requested HTTP status code."""
await self.build_embed(url=HTTP_CAT_URL.format(code=code), ctx=ctx, code=code)
@http_status_group.command(name="dog")
async def http_dog(self, ctx: commands.Context, code: int) -> None:
- """Assemble Dog URL and build Embed."""
+ """Send a dog version of the requested HTTP status code."""
await self.build_embed(url=HTTP_DOG_URL.format(code=code), ctx=ctx, code=code)
async def build_embed(self, url: str, ctx: commands.Context, code: int) -> None: