diff options
author | 2021-05-07 11:46:05 -0400 | |
---|---|---|
committer | 2021-05-07 11:46:05 -0400 | |
commit | e8ff12ccd368e20ba9360a2dde6b13d9d838beaf (patch) | |
tree | eb96f636ac252aa5d84e76746843e2e5d734b30f | |
parent | Merge pull request #716 from ToxicKidz/feat/mosaic-command (diff) | |
parent | fix: 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.py | 2 |
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) |