aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar brad90four <[email protected]>2021-08-31 14:26:49 -0400
committerGravatar brad90four <[email protected]>2021-08-31 14:26:49 -0400
commit7151ba8ff8265de4ccfcb7afbe2db0c3e0efc064 (patch)
tree4f692fc0a8e5a73af14b3e5704bd11a8b42f21dd
parentFix Dog instead of Cat, code error embed update (diff)
All ranges are inclusive
Changed the range check for the status code. Previously was 599, now 600.
-rw-r--r--bot/exts/evergreen/status_codes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/status_codes.py b/bot/exts/evergreen/status_codes.py
index 56cc5786..54b43304 100644
--- a/bot/exts/evergreen/status_codes.py
+++ b/bot/exts/evergreen/status_codes.py
@@ -39,7 +39,7 @@ class HTTPStatusCodes(commands.Cog):
@http_status_group.command(name="cat")
async def http_cat(self, ctx: commands.Context, code: int) -> None:
"""Send a cat version of the requested HTTP status code."""
- if code in range(100, 599):
+ if code in range(100, 600):
await self.build_embed(url=HTTP_CAT_URL.format(code=code), ctx=ctx, code=code)
return
await ctx.send(embed=ERROR_LENGTH_EMBED)
@@ -47,7 +47,7 @@ class HTTPStatusCodes(commands.Cog):
@http_status_group.command(name="dog")
async def http_dog(self, ctx: commands.Context, code: int) -> None:
"""Send a dog version of the requested HTTP status code."""
- if code in range(100, 599):
+ if code in range(100, 600):
await self.build_embed(url=HTTP_DOG_URL.format(code=code), ctx=ctx, code=code)
return
await ctx.send(embed=ERROR_LENGTH_EMBED)