From 08cc01ca702bb3b0342027b5a706d428ba1a123b Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 9 Jan 2020 00:03:16 +0100 Subject: [PATCH] tweaked carbon cooldown --- cogs/api/carbon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/api/carbon.py b/cogs/api/carbon.py index 0429ec2..ed67982 100644 --- a/cogs/api/carbon.py +++ b/cogs/api/carbon.py @@ -9,7 +9,7 @@ class Carbon(commands.Cog): self.client = client @commands.group(name="carbon", usage="carbon [subcommand]", description="Can accumulate data about carbon levels in the UK") - @commands.cooldown(1, 30) + @commands.cooldown(1, 5) async def carbon(self, ctx): pass @@ -27,6 +27,7 @@ class Carbon(commands.Cog): await ctx.send(embed=embed.make_embed_fields_footer("Carbon intensity in the UK", f"The carbon intensity for that date is considered **{data[3]}**.", f"{data[0]} | All values in gCO2/kWh", ("Measured", data[2]), ("Predicted", data[1]))) @carbon.command(name="during", usage="carbon during ", description="Creates a diagram about carbon levels in the given time period (YYYY-MM-DD)") + @commands.cooldown(1, 25) async def during(self, ctx: discord.Client, start: str, stop: str): path = carbon.level_from_to(start, stop) if path == "":