Bump linter version

This commit is contained in:
Max Isom 2021-09-19 22:24:46 -04:00
parent fd782219ef
commit dcac22832d
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
28 changed files with 184 additions and 198 deletions

View file

@ -9,7 +9,7 @@ export default class implements Command {
public name = 'clear';
public aliases = ['c'];
public examples = [
['clear', 'clears all songs in queue except currently playing']
['clear', 'clears all songs in queue except currently playing'],
];
public requiresVC = true;

View file

@ -10,7 +10,7 @@ export default class implements Command {
public aliases = [];
public examples = [
['config prefix !', 'set the prefix to !'],
['config channel music-commands', 'bind the bot to the music-commands channel']
['config channel music-commands', 'bind the bot to the music-commands channel'],
];
public async execute(msg: Message, args: string []): Promise<void> {
@ -64,7 +64,7 @@ export default class implements Command {
await Promise.all([
(channel as TextChannel).send('hey apparently I\'m bound to this channel now'),
msg.react('👍')
msg.react('👍'),
]);
} else {
await msg.channel.send(errorMsg('either that channel doesn\'t exist or you want me to become sentient and listen to a voice channel'));

View file

@ -10,7 +10,7 @@ export default class implements Command {
public name = 'disconnect';
public aliases = ['dc'];
public examples = [
['disconnect', 'pauses and disconnects player']
['disconnect', 'pauses and disconnects player'],
];
public requiresVC = true;

View file

@ -11,7 +11,7 @@ export default class implements Command {
public name = 'fseek';
public aliases = [];
public examples = [
['fseek 10', 'skips forward in current song by 10 seconds']
['fseek 10', 'skips forward in current song by 10 seconds'],
];
public requiresVC = true;

View file

@ -10,7 +10,7 @@ export default class implements Command {
public name = 'help';
public aliases = ['h'];
public examples = [
['help', 'you don\'t need a description']
['help', 'you don\'t need a description'],
];
private commands: Command[] = [];

View file

@ -11,7 +11,7 @@ export default class implements Command {
public name = 'pause';
public aliases = [];
public examples = [
['pause', 'pauses currently playing song']
['pause', 'pauses currently playing song'],
];
public requiresVC = true;

View file

@ -24,7 +24,7 @@ export default class implements Command {
['play https://open.spotify.com/album/5dv1oLETxdsYOkS2Sic00z?si=bDa7PaloRx6bMIfKdnvYQw', 'adds all songs from album to the queue'],
['play https://open.spotify.com/playlist/37i9dQZF1DX94qaYRnkufr?si=r2fOVL_QQjGxFM5MWb84Xw', 'adds all songs from playlist to the queue'],
['play cool music immediate', 'adds the first search result for "cool music" to the front of the queue'],
['play cool music i', 'adds the first search result for "cool music" to the front of the queue']
['play cool music i', 'adds the first search result for "cool music" to the front of the queue'],
];
public requiresVC = true;
@ -82,7 +82,7 @@ export default class implements Command {
// YouTube source
if (url.searchParams.get('list')) {
// YouTube playlist
newSongs.push(...await this.getSongs.youtubePlaylist(url.searchParams.get('list') as string));
newSongs.push(...await this.getSongs.youtubePlaylist(url.searchParams.get('list')!));
} else {
// Single video
const song = await this.getSongs.youtubeVideo(url.href);
@ -135,7 +135,9 @@ export default class implements Command {
return;
}
newSongs.forEach(song => player.add({...song, addedInChannelId: msg.channel.id}, {immediate: addToFrontOfQueue}));
newSongs.forEach(song => {
player.add({...song, addedInChannelId: msg.channel.id}, {immediate: addToFrontOfQueue});
});
const firstSong = newSongs[0];

View file

@ -17,7 +17,7 @@ export default class implements Command {
public aliases = ['q'];
public examples = [
['queue', 'shows current queue'],
['queue 2', 'shows second page of queue']
['queue 2', 'shows second page of queue'],
];
private readonly playerManager: PlayerManager;

View file

@ -14,7 +14,7 @@ export default class implements Command {
public examples = [
['seek 10', 'seeks to 10 seconds from beginning of song'],
['seek 1:30', 'seeks to 1 minute and 30 seconds from beginning of song'],
['seek 1:00:00', 'seeks to 1 hour from beginning of song']
['seek 1:00:00', 'seeks to 1 hour from beginning of song'],
];
public requiresVC = true;

View file

@ -12,7 +12,7 @@ export default class implements Command {
['shortcuts', 'show all shortcuts'],
['shortcuts set s skip', 'aliases `s` to `skip`'],
['shortcuts set party play https://www.youtube.com/watch?v=zK6oOJ1wz8k', 'aliases `party` to a specific play command'],
['shortcuts delete party', 'removes the `party` shortcut']
['shortcuts delete party', 'removes the `party` shortcut'],
];
public async execute(msg: Message, args: string []): Promise<void> {

View file

@ -10,7 +10,7 @@ export default class implements Command {
public name = 'shuffle';
public aliases = [];
public examples = [
['shuffle', 'shuffles the current queue']
['shuffle', 'shuffles the current queue'],
];
public requiresVC = true;

View file

@ -12,7 +12,7 @@ export default class implements Command {
public aliases = ['s'];
public examples = [
['skip', 'skips the current song'],
['skip 2', 'skips the next 2 songs']
['skip 2', 'skips the next 2 songs'],
];
public requiresVC = true;

View file

@ -10,7 +10,7 @@ export default class implements Command {
public name = 'unskip';
public aliases = ['back'];
public examples = [
['unskip', 'goes back in the queue by one song']
['unskip', 'goes back in the queue by one song'],
];
public requiresVC = true;