From b42b475690c38b524d3d0c93388900f4f89e8c0f Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 15 Mar 2023 21:28:53 +0100 Subject: [PATCH] updated the rate at which people can make requests --- reginaldCog/reginald.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reginaldCog/reginald.py b/reginaldCog/reginald.py index 939e741..7be8fde 100644 --- a/reginaldCog/reginald.py +++ b/reginaldCog/reginald.py @@ -23,7 +23,12 @@ class ReginaldCog(commands.Cog): @commands.guild_only() @commands.command(help="Ask Reginald a question") + @commands.cooldown(1, 300, commands.BucketType.user) # 5-minute cooldown per user async def reginald(self, ctx, *, prompt=None): + ignored_user_id = 138125632876838912 + if ctx.author.id == ignored_user_id: + return + greetings = [ "Greetings! How may I be of assistance to you?", "Yes? How may I help?", @@ -65,4 +70,4 @@ class ReginaldCog(commands.Cog): def setup(bot): cog = ReginaldCog(bot) - bot.add_cog(cog) \ No newline at end of file + bot.add_cog(cog)