set a timeout instead of an interval in lolchamp

This commit is contained in:
Daniel Odendahl Jr
2018-02-17 21:23:11 +00:00
parent 1f9e0a7c90
commit e1e848a08f
2 changed files with 2 additions and 2 deletions
@@ -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;
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "64.1.1",
"version": "64.1.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {