From f80c66e1c1aec76e5057a0dc78d127f32fa2d433 Mon Sep 17 00:00:00 2001 From: Valerie Date: Mon, 26 May 2025 20:18:27 -0400 Subject: [PATCH] Update positive method in Checks class to allow zero as a valid input, enhancing validation logic for user input. --- shop/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/checks.py b/shop/checks.py index 447c862..7282d7d 100644 --- a/shop/checks.py +++ b/shop/checks.py @@ -32,7 +32,7 @@ class Checks: return False def positive(self, m): - return self.same(m) and m.content.isdigit() and int(m.content) > 0 + return self.same(m) and m.content.isdigit() and int(m.content) >= 0 def role(self, m): roles = [r.name for r in self.ctx.guild.roles if r.name != "Bot"]