From 8a77d29e6330ac45938fa6ed523f473348977444 Mon Sep 17 00:00:00 2001 From: Elis Odenhage Date: Wed, 31 May 2023 21:53:49 +0200 Subject: [PATCH] fix: update cooldown duration to a week --- src/commands/credits/groups/bonus/subcommands/weekly/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/credits/groups/bonus/subcommands/weekly/index.ts b/src/commands/credits/groups/bonus/subcommands/weekly/index.ts index 42d1428..b97d2aa 100644 --- a/src/commands/credits/groups/bonus/subcommands/weekly/index.ts +++ b/src/commands/credits/groups/bonus/subcommands/weekly/index.ts @@ -57,6 +57,8 @@ export const execute = async (interaction: ChatInputCommandInteraction) => { await sendResponse(interaction, { embeds: [embed] }); + const cooldownDuration = 7 * 24 * 60 * 60; // 1 week in seconds + const cooldownName = await generateCooldownName(interaction); await cooldownManager.setCooldown( await generateCooldownName(interaction), guild,