From e8db4848709c303113d645e7b48a266adbb43a12 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Thu, 3 Oct 2019 18:05:28 -0700 Subject: [PATCH] [Trick Or Treat] Fix totcooldown pt 2 --- trickortreat/trickortreat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trickortreat/trickortreat.py b/trickortreat/trickortreat.py index d5a45f1..97753d3 100644 --- a/trickortreat/trickortreat.py +++ b/trickortreat/trickortreat.py @@ -6,7 +6,7 @@ from redbot.core import commands, checks, Config, bank from redbot.core.utils.chat_formatting import box, pagify from redbot.core.utils.menus import menu, DEFAULT_CONTROLS -__version__ = "0.0.6" +__version__ = "0.0.6a" class TrickOrTreat(commands.Cog): @@ -236,6 +236,8 @@ class TrickOrTreat(commands.Cog): @commands.command() async def totcooldown(self, ctx, cooldown_time: int = 0): """Set the cooldown time for trick or treating on the server.""" + if cooldown_time < 0: + return await ctx.send("Nice try.") if cooldown_time == 0: await self.config.guild(ctx.guild).cooldown.set(300) return await ctx.send("Trick or treating cooldown time reset to 5m.")