From 49357220de6f6d6669711c54127e7b1c79c15808 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 28 May 2025 10:38:07 -0600 Subject: [PATCH] Bypass cache when ANI passed to LRN command: --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b59b67d..57c458a 100644 --- a/index.js +++ b/index.js @@ -130,7 +130,7 @@ Client.on("interactionCreate", async (interaction) => { } else { cached = {} } - if (!cached.lrn || new Date() > new Date(cached?.expires)) { + if (!cached.lrn || new Date() > new Date(cached?.expires) || ani) { // Old, get from API interaction.reply({ ephemeral: showLrn, content: `<:checking:1305271116134092842> Looking up \`${did}\`` }).then(() => { axios.get(process.env.LRN_API_URL.replaceAll("%did", did).replaceAll("%ani", ani || "")).then((response) => {