add custom cooldowns for mine command
@@ -100,6 +100,15 @@ class Events(commands.Cog):
if isinstance(e, commands.CommandOnCooldown):
seconds = round(e.retry_after, 2)
+ if ctx.command.name == 'mine':
+ if await self.db.fetch_item(ctx.author.id, 'Efficiency I Book') is not None:
+ e.retry_after -= .5
+
+ if 'Haste II Potion' in self.d.chuggers.get(ctx.author.id, []):
+ e.retry_after -= 1
+ elif 'Haste I Potion' in self.d.chuggers.get(ctx.author.id, []):
+ e.retry_after -= .5
+
if seconds < .04:
await ctx.reinvoke()
return
