aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dennis Pham <[email protected]>2021-05-07 11:46:05 -0400
committerGravatar GitHub <[email protected]>2021-05-07 11:46:05 -0400
commite8ff12ccd368e20ba9360a2dde6b13d9d838beaf (patch)
treeeb96f636ac252aa5d84e76746843e2e5d734b30f
parentMerge pull request #716 from ToxicKidz/feat/mosaic-command (diff)
parentfix: Add a missing 'not' (diff)
Merge pull request #724 from ToxicKidz/fix/mosaic-command
Fix the .mosaic command check that is missing a `not`
-rw-r--r--bot/exts/evergreen/avatar_modification/avatar_modify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/avatar_modification/avatar_modify.py b/bot/exts/evergreen/avatar_modification/avatar_modify.py
index 6418eaee..2afc3b74 100644
--- a/bot/exts/evergreen/avatar_modification/avatar_modify.py
+++ b/bot/exts/evergreen/avatar_modification/avatar_modify.py
@@ -322,7 +322,7 @@ class AvatarModify(commands.Cog):
await ctx.send(f"{Emojis.cross_mark} Could not get member info.")
return
- if 1 <= squares <= MAX_SQUARES:
+ if not 1 <= squares <= MAX_SQUARES:
raise commands.BadArgument(f"Squares must be a positive number less than or equal to {MAX_SQUARES:,}.")
sqrt = math.sqrt(squares)