Stopped using decorators

This commit is contained in:
unknown 2023-06-03 19:20:01 +02:00
parent e8a38467e0
commit 0ed4e32665

View File

@ -61,10 +61,11 @@ class ReginaldCog(commands.Cog):
await ctx.send("OpenAI API key set successfully.")
@commands.guild_only()
@commands.check_any(commands.check(is_admin), commands.check(is_allowed))
@commands.command(help="Ask Reginald a question")
@commands.cooldown(1, 10, commands.BucketType.user) # 10 second cooldown per user
async def reginald(self, ctx, *, prompt=None):
if not await self.is_admin(ctx) and not await self.is_allowed(ctx):
raise commands.CheckFailure("You do not have the required role to use this command.")
greetings = [
"Greetings! How may I be of assistance to you?",
"Yes? How may I help?",