mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
set a timeout instead of an interval in lolchamp
This commit is contained in:
@@ -86,7 +86,7 @@ module.exports = class LeagueOfLegendsChampionCommand extends Command {
|
|||||||
.get('https://na1.api.riotgames.com/lol/static-data/v3/versions')
|
.get('https://na1.api.riotgames.com/lol/static-data/v3/versions')
|
||||||
.query({ api_key: RIOT_KEY });
|
.query({ api_key: RIOT_KEY });
|
||||||
[this.version] = body;
|
[this.version] = body;
|
||||||
setInterval(() => { this.version = null; }, 3600000);
|
setTimeout(() => { this.version = null; }, 3600000);
|
||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "64.1.1",
|
"version": "64.1.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user