diff --git a/src/commands/dayz/leaderboard.js b/src/commands/dayz/leaderboard.js index 683d97b..cfe5c93 100644 --- a/src/commands/dayz/leaderboard.js +++ b/src/commands/dayz/leaderboard.js @@ -64,8 +64,8 @@ module.exports = { // Setting a cooldown to avoid abuse // Allowed 2 times every 10 seconds per user cooldown: { - usages: 2, - duration: 10 + usages: 7, + duration: 60 } }, diff --git a/src/listeners/interaction/applicationCommandInteraction.js b/src/listeners/interaction/applicationCommandInteraction.js index 74a5f16..84bac07 100644 --- a/src/listeners/interaction/applicationCommandInteraction.js +++ b/src/listeners/interaction/applicationCommandInteraction.js @@ -83,7 +83,7 @@ module.exports = (client, interaction) => { // Throttle the command // permLevel 4 = Developer if (member.permLevel < 4) { - const onCooldown = throttleCommand(clientCmd, `${guild.id}${member.id}`); + const onCooldown = throttleCommand(clientCmd, `${guild.id}`); if (onCooldown !== false) { interaction.reply({ content: onCooldown.replace('{{user}}', `${member}`) diff --git a/src/modules/cftClient.js b/src/modules/cftClient.js index 288d0b5..bf215f8 100644 --- a/src/modules/cftClient.js +++ b/src/modules/cftClient.js @@ -9,7 +9,6 @@ const { // export our CFTools client as unnamed default module.exports = new cftSDK.CFToolsClientBuilder() - .withCache() .withServerApiId(CFTOOLS_SERVER_API_ID) .withCredentials(CFTOOLS_API_APPLICATION_ID, CFTOOLS_API_SECRET) .build();