From 351b9655e3dd09e97800a3b551aaab7d0c46d2da Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Mon, 11 Sep 2023 21:22:44 +0200 Subject: [PATCH] Allow analyze command to be executed by everyone (#71) --- 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 6c2dbe6..4f2164f 100644 --- a/robocop_ng/cogs/logfilereader.py +++ b/robocop_ng/cogs/logfilereader.py @@ -4,7 +4,7 @@ import re 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 @@ class LogFileReader(Cog): ), ) - @commands.check(check_if_staff) + @commands.cooldown(3, 30, BucketType.channel) @commands.command( aliases=["analyselog", "analyse_log", "analyze", "analyzelog", "analyze_log"] )