Update positive method in Checks class to allow zero as a valid input, enhancing validation logic for user input.
Some checks are pending
Run pre-commit / Run pre-commit (push) Waiting to run

This commit is contained in:
Valerie 2025-05-26 20:18:27 -04:00
parent 3794068ae5
commit f80c66e1c1

View file

@ -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"]