From 9d803c4710856de47f62068d2f3244fbad1365e5 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Tue, 17 Sep 2019 08:29:08 -0700 Subject: [PATCH] [Pupper] Fix for min/max setting Thanks Flame. --- pupper/pupper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pupper/pupper.py b/pupper/pupper.py index cdf4d67..b5a9ead 100644 --- a/pupper/pupper.py +++ b/pupper/pupper.py @@ -57,7 +57,7 @@ class Pupper(commands.Cog): """Set the pet credits range on successful petting.""" if min_amt > max_amt: return await ctx.send("Min must be less than max.") - if min_amt or max_amt < 1: + if min_amt < 1 or max_amt < 1: return await ctx.send("Min and max amounts must be greater than 1.") await self.config.guild(ctx.guild).credits.set([min_amt, max_amt]) await ctx.send(f"Pet credit range set to {min_amt} - {max_amt}.")