Merge pull request #657 from ZynerOrg/dev
Fix cooldowns for credits bonus commands
This commit is contained in:
commit
4153b013ce
2 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ export const execute = async (interaction: ChatInputCommandInteraction) => {
|
|||
|
||||
await sendResponse(interaction, { embeds: [embed] });
|
||||
|
||||
const cooldownDuration = 24 * 60 * 60; // 24 hours in seconds
|
||||
const cooldownDuration = 4 * 7 * 24 * 60 * 60; // 1 month in seconds
|
||||
const cooldownName = await generateCooldownName(interaction);
|
||||
await cooldownManager.setCooldown(
|
||||
cooldownName,
|
||||
|
|
|
@ -62,7 +62,7 @@ export const execute = async (interaction: ChatInputCommandInteraction) => {
|
|||
|
||||
await sendResponse(interaction, { embeds: [embed] });
|
||||
|
||||
const cooldownDuration = 24 * 60 * 60; // 24 hours in seconds
|
||||
const cooldownDuration = 7 * 24 * 60 * 60; // 1 week in seconds
|
||||
const cooldownName = await generateCooldownName(interaction);
|
||||
await cooldownManager.setCooldown(
|
||||
cooldownName,
|
||||
|
|
Loading…
Add table
Reference in a new issue