Skip to content

Commit

Permalink
Mise en cache du leaderboard pendant une minute
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-perso committed Sep 10, 2023
1 parent c696ca3 commit 44ff491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/bachero.module.level/level-leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44ff491

Please sign in to comment.