From 44ff491b38369df5eeac7bfb776b4a7dd6f2e1cd Mon Sep 17 00:00:00 2001 From: Johan le stickman Date: Sun, 10 Sep 2023 02:27:29 +0200 Subject: [PATCH] Mise en cache du leaderboard pendant une minute --- modules/bachero.module.level/level-leaderboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bachero.module.level/level-leaderboard.js b/modules/bachero.module.level/level-leaderboard.js index 5a7a769..c2204bf 100644 --- a/modules/bachero.module.level/level-leaderboard.js +++ b/modules/bachero.module.level/level-leaderboard.js @@ -138,11 +138,11 @@ module.exports = { // On met en cache if(showGlobal) global_cacheLeaderboard = { embed: global_embed, - expire: Date.now() + (1000 * 60 * 2) // 2 minutes + expire: Date.now() + (1000 * 60) // 1 minute } if(guildId) guild_cacheLeaderboard[guildId] = { embed: server_embed, - expire: Date.now() + (1000 * 60 * 2) // 2 minutes + expire: Date.now() + (1000 * 60) // 1 minute } // On envoie l'embed