mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
eslint
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
const { Command } = require('discord.js-commando');
|
const { Command } = require('discord.js-commando');
|
||||||
const { MessageEmbed } = require('discord.js');
|
const { MessageEmbed } = require('discord.js');
|
||||||
const snekfetch = require('snekfetch');
|
const snekfetch = require('snekfetch');
|
||||||
const { shorten } = require('../../util/Util');
|
|
||||||
const { RIOT_KEY } = process.env;
|
const { RIOT_KEY } = process.env;
|
||||||
const buttons = ['Q', 'W', 'E', 'R'];
|
const buttons = ['Q', 'W', 'E', 'R'];
|
||||||
|
|
||||||
@@ -25,7 +24,7 @@ module.exports = class LeagueOfLegendsChampionCommand extends Command {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.version = null;
|
this.version = null;
|
||||||
this.client.setInterval(() => this.version = null, 3600000);
|
this.client.setInterval(() => (this.version = null), 3600000); // eslint-disable-line no-extra-parens
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(msg, { champion }) {
|
async run(msg, { champion }) {
|
||||||
@@ -93,7 +92,7 @@ module.exports = class LeagueOfLegendsChampionCommand extends Command {
|
|||||||
const { body } = await snekfetch
|
const { body } = await snekfetch
|
||||||
.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[0];
|
[this.version] = body;
|
||||||
return this.version;
|
return this.version;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user