From 868f6d2792d24dff6a1e6e7f43e2c388875ef591 Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Sat, 19 Aug 2023 19:38:37 +0200 Subject: [PATCH] Allow analyze command to be executed by everyone --- robocop_ng/cogs/logfilereader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robocop_ng/cogs/logfilereader.py b/robocop_ng/cogs/logfilereader.py index 6c2dbe62..4f2164fc 100644 --- a/robocop_ng/cogs/logfilereader.py +++ b/robocop_ng/cogs/logfilereader.py @@ -4,7 +4,7 @@ import aiohttp from discord import Colour, Embed, Message, Attachment from discord.ext import commands -from discord.ext.commands import Cog, Context +from discord.ext.commands import Cog, Context, BucketType from robocop_ng.helpers.checks import check_if_staff from robocop_ng.helpers.disabled_ids import ( @@ -513,7 +513,7 @@ async def analyse_log_message(self, message: Message, attachment_index=0): ), ) - @commands.check(check_if_staff) + @commands.cooldown(3, 30, BucketType.channel) @commands.command( aliases=["analyselog", "analyse_log", "analyze", "analyzelog", "analyze_log"] )