From 07b3c5dd6f8c260af4b381c92e749a9a708a42c5 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji <88056492+atridadl@users.noreply.github.com> Date: Thu, 15 Jun 2023 23:16:44 -0600 Subject: [PATCH] More ratelimits --- src/commands/pic.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/pic.ts b/src/commands/pic.ts index 3aa997c..5ba5ae7 100644 --- a/src/commands/pic.ts +++ b/src/commands/pic.ts @@ -10,7 +10,9 @@ const openai = new OpenAIApi(configuration); @ApplyOptions({ description: 'Make a picture!', - options: ['prompt'] + options: ['prompt'], + cooldownDelay: 20_000, + cooldownLimit: 1 }) export class UserCommand extends Command { // Register Chat Input and Context Menu command