Cooldowns

This commit is contained in:
Atridad Lahiji 2023-11-10 18:47:57 -07:00
parent e9d9b202b0
commit dfbd1cb48c
No known key found for this signature in database
2 changed files with 3 additions and 5 deletions

View file

@ -9,10 +9,9 @@ const openai = new OpenAI({
// @ts-ignore // @ts-ignore
@ApplyOptions<Command.Options>({ @ApplyOptions<Command.Options>({
description: 'Pic... but better!', description: 'Pic... but better! Cooldown of 6 Minutes!',
options: ['prompt'], options: ['prompt'],
// 10mins cooldownDelay: 600_000,
cooldownDelay: 500_000,
cooldownLimit: 1, cooldownLimit: 1,
// Yes... I did hardcode myself. // Yes... I did hardcode myself.
cooldownFilteredUsers: ['83679718401904640'], cooldownFilteredUsers: ['83679718401904640'],

View file

@ -9,9 +9,8 @@ const openai = new OpenAI({
// @ts-ignore // @ts-ignore
@ApplyOptions<Command.Options>({ @ApplyOptions<Command.Options>({
description: 'Pic... but better!', description: 'Generate a pic every 4 minutes!',
options: ['prompt'], options: ['prompt'],
// 10mins
cooldownDelay: 400_000, cooldownDelay: 400_000,
cooldownLimit: 1, cooldownLimit: 1,
// Yes... I did hardcode myself. // Yes... I did hardcode myself.