From 2f4981c1af2810f09e9c11fc2abaa997f378f02c Mon Sep 17 00:00:00 2001 From: snipe_blaze <72265661+notsniped@users.noreply.github.com> Date: Sun, 7 Aug 2022 20:49:12 +0530 Subject: [PATCH] Add 1 hour cooldown for autogrind command Added to match 1 hour wait for rewards. --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 33e8aae5..5c47c569 100644 --- a/main.py +++ b/main.py @@ -925,6 +925,7 @@ async def afk_mod_remove(ctx:SlashContext, user:discord.User): name="autogrind", description="Automatically grinds coins and items for you" ) +@commands.cooldown(1, 3600, commands.BucketType.user) async def autogrind(ctx:SlashContext): await ctx.reply("Autogrind has started. Please check back in an hour for your rewards.") await asyncio.sleep(3600)