mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +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')
|
||||
.query({ api_key: RIOT_KEY });
|
||||
[this.version] = body;
|
||||
setInterval(() => { this.version = null; }, 3600000);
|
||||
setTimeout(() => { this.version = null; }, 3600000);
|
||||
return body;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "64.1.1",
|
||||
"version": "64.1.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user