From e61c8ea03cb147641fd523a03b94a8877b335b18 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 21 Oct 2017 22:28:19 +0000 Subject: [PATCH] Beep --- commands/search/league-of-legends-champion.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/search/league-of-legends-champion.js b/commands/search/league-of-legends-champion.js index e813ed7c..de00daa1 100644 --- a/commands/search/league-of-legends-champion.js +++ b/commands/search/league-of-legends-champion.js @@ -25,15 +25,15 @@ module.exports = class LeagueOfLegendsChampionCommand extends Command { }); this.version = null; - this.champions = new Map(); - this.client.setInterval(() => this.champions.clear(), 3600000); + this.cache = new Map(); + this.client.setInterval(() => this.cache.clear(), 3600000); } async run(msg, { champion }) { if (champion === 'satan') champion = 'teemo'; try { let data; - if (!this.champions.has(champion)) { + if (!this.cache.has(champion)) { const search = await snekfetch .get('https://na1.api.riotgames.com/lol/static-data/v3/champions') .query({ api_key: RIOT_KEY });