mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57: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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user