From 50f0ad6099d2d0589ac1de28a11aca64520cd41c Mon Sep 17 00:00:00 2001 From: NIXC <16856738+NIXC@users.noreply.github.com> Date: Fri, 4 Oct 2019 19:44:45 -0600 Subject: [PATCH] fix uneating candy (#68) --- trickortreat/trickortreat.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trickortreat/trickortreat.py b/trickortreat/trickortreat.py index 97753d3..645146f 100644 --- a/trickortreat/trickortreat.py +++ b/trickortreat/trickortreat.py @@ -38,8 +38,10 @@ class TrickOrTreat(commands.Cog): pick = await self.config.guild(ctx.guild).pick() if not candy_type: candy_type = "candies" - if number <= 0: - number == 1 + if number < 0: + return await ctx.send("That doesn't sound fun.") + if number == 0: + return await ctx.send("You pretend to eat a candy.") if candy_type in ["candies", "candy"]: candy_type = "candies" if candy_type in ["lollipops", "lollipop"]: