diff options
| author | Max Isom <[email protected]> | 2021-09-19 22:24:46 -0400 |
|---|---|---|
| committer | Max Isom <[email protected]> | 2021-09-19 22:24:46 -0400 |
| commit | dcac22832d02376c351603c944aabec17f2b7d1b (patch) | |
| tree | a40097c3b7b3f8276fa2e0ccafd95d313474b84a /src/commands | |
| parent | fd782219eff8016a00e87f0c8e44af3a3ba74be6 (diff) | |
| download | muse-dcac22832d02376c351603c944aabec17f2b7d1b.tar.xz muse-dcac22832d02376c351603c944aabec17f2b7d1b.zip | |
Bump linter version
Diffstat (limited to 'src/commands')
| -rw-r--r-- | src/commands/clear.ts | 2 | ||||
| -rw-r--r-- | src/commands/config.ts | 4 | ||||
| -rw-r--r-- | src/commands/disconnect.ts | 2 | ||||
| -rw-r--r-- | src/commands/fseek.ts | 2 | ||||
| -rw-r--r-- | src/commands/help.ts | 2 | ||||
| -rw-r--r-- | src/commands/pause.ts | 2 | ||||
| -rw-r--r-- | src/commands/play.ts | 8 | ||||
| -rw-r--r-- | src/commands/queue.ts | 2 | ||||
| -rw-r--r-- | src/commands/seek.ts | 2 | ||||
| -rw-r--r-- | src/commands/shortcuts.ts | 2 | ||||
| -rw-r--r-- | src/commands/shuffle.ts | 2 | ||||
| -rw-r--r-- | src/commands/skip.ts | 2 | ||||
| -rw-r--r-- | src/commands/unskip.ts | 2 |
13 files changed, 18 insertions, 16 deletions
diff --git a/src/commands/clear.ts b/src/commands/clear.ts index 189b8af..9906dab 100644 --- a/src/commands/clear.ts +++ b/src/commands/clear.ts @@ -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; diff --git a/src/commands/config.ts b/src/commands/config.ts index 6ecad6b..0e5728a 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -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')); diff --git a/src/commands/disconnect.ts b/src/commands/disconnect.ts index 7280b51..89b0b85 100644 --- a/src/commands/disconnect.ts +++ b/src/commands/disconnect.ts @@ -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; diff --git a/src/commands/fseek.ts b/src/commands/fseek.ts index 850889d..16d1430 100644 --- a/src/commands/fseek.ts +++ b/src/commands/fseek.ts @@ -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; diff --git a/src/commands/help.ts b/src/commands/help.ts index 05bc565..f150c54 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -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[] = []; diff --git a/src/commands/pause.ts b/src/commands/pause.ts index 4f57e95..1dee95d 100644 --- a/src/commands/pause.ts +++ b/src/commands/pause.ts @@ -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; diff --git a/src/commands/play.ts b/src/commands/play.ts index 7013626..8221f7b 100644 --- a/src/commands/play.ts +++ b/src/commands/play.ts @@ -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]; diff --git a/src/commands/queue.ts b/src/commands/queue.ts index a4bdc1e..85420e8 100644 --- a/src/commands/queue.ts +++ b/src/commands/queue.ts @@ -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; diff --git a/src/commands/seek.ts b/src/commands/seek.ts index ae064ef..5578aca 100644 --- a/src/commands/seek.ts +++ b/src/commands/seek.ts @@ -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; diff --git a/src/commands/shortcuts.ts b/src/commands/shortcuts.ts index 57ed245..109d5fc 100644 --- a/src/commands/shortcuts.ts +++ b/src/commands/shortcuts.ts @@ -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> { diff --git a/src/commands/shuffle.ts b/src/commands/shuffle.ts index 0f1d832..d50f0b3 100644 --- a/src/commands/shuffle.ts +++ b/src/commands/shuffle.ts @@ -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; diff --git a/src/commands/skip.ts b/src/commands/skip.ts index 7330888..4bab307 100644 --- a/src/commands/skip.ts +++ b/src/commands/skip.ts @@ -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; diff --git a/src/commands/unskip.ts b/src/commands/unskip.ts index 9444b8e..a453448 100644 --- a/src/commands/unskip.ts +++ b/src/commands/unskip.ts @@ -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; |
