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"] )