From dfbd1cb48c3579ba91ce582f711219fa2528b3f6 Mon Sep 17 00:00:00 2001 From: atridadl Date: Fri, 10 Nov 2023 18:47:57 -0700 Subject: [PATCH] Cooldowns --- src/commands/fancypic.ts | 5 ++--- src/commands/pic.ts | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/commands/fancypic.ts b/src/commands/fancypic.ts index a85f2cb..e19aaf1 100644 --- a/src/commands/fancypic.ts +++ b/src/commands/fancypic.ts @@ -9,10 +9,9 @@ const openai = new OpenAI({ // @ts-ignore @ApplyOptions({ - description: 'Pic... but better!', + description: 'Pic... but better! Cooldown of 6 Minutes!', options: ['prompt'], - // 10mins - cooldownDelay: 500_000, + cooldownDelay: 600_000, cooldownLimit: 1, // Yes... I did hardcode myself. cooldownFilteredUsers: ['83679718401904640'], diff --git a/src/commands/pic.ts b/src/commands/pic.ts index 625e107..b0067e1 100644 --- a/src/commands/pic.ts +++ b/src/commands/pic.ts @@ -9,9 +9,8 @@ const openai = new OpenAI({ // @ts-ignore @ApplyOptions({ - description: 'Pic... but better!', + description: 'Generate a pic every 4 minutes!', options: ['prompt'], - // 10mins cooldownDelay: 400_000, cooldownLimit: 1, // Yes... I did hardcode myself.