From e1e848a08fa7731bbfe477aebbf9323ed52991b8 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 17 Feb 2018 21:23:11 +0000 Subject: [PATCH] set a timeout instead of an interval in lolchamp --- commands/search/league-of-legends-champion.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search/league-of-legends-champion.js b/commands/search/league-of-legends-champion.js index 12503937..8e6cf71a 100644 --- a/commands/search/league-of-legends-champion.js +++ b/commands/search/league-of-legends-champion.js @@ -86,7 +86,7 @@ module.exports = class LeagueOfLegendsChampionCommand extends Command { .get('https://na1.api.riotgames.com/lol/static-data/v3/versions') .query({ api_key: RIOT_KEY }); [this.version] = body; - setInterval(() => { this.version = null; }, 3600000); + setTimeout(() => { this.version = null; }, 3600000); return body; } diff --git a/package.json b/package.json index 41639b47..87619f5c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "64.1.1", + "version": "64.1.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {