aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorcheqpat <[email protected]>2021-10-02 02:14:47 -0500
committercheqpat <[email protected]>2021-10-02 02:14:47 -0500
commitb91e072e2fbc63692f42a1e9476e171ee37905bb (patch)
treee62a8dcd331225dab5f42ce1c0297789be887c96 /src/commands
parent811c80d544653420e99152a78e64d9c079251ede (diff)
downloadmuse-b91e072e2fbc63692f42a1e9476e171ee37905bb.tar.xz
muse-b91e072e2fbc63692f42a1e9476e171ee37905bb.zip
implement @udany's fix
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/play.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/commands/play.ts b/src/commands/play.ts
index a907a40..0dc1ce1 100644
--- a/src/commands/play.ts
+++ b/src/commands/play.ts
@@ -157,12 +157,16 @@ export default class implements Command {
await res.stop(`u betcha, **${firstSong.title}** and ${newSongs.length - 1} other songs were added to the queue${extraMsg}`);
}
- if (queueOldSize === 0 && !wasPlayingSong) {
- // Only auto-play if queue was empty before and nothing was playing
- if (player.voiceConnection === null) {
- await player.connect(targetVoiceChannel);
+ if (player.voiceConnection === null) {
+ await player.connect(targetVoiceChannel);
+
+ if (player.status === STATUS.PAUSED && queueOldSize) {
+ await msg.channel.send('joined, but I\'m paused, use a lonely `-p` to resume playback');
}
+ }
+ if (queueOldSize === 0 && !wasPlayingSong) {
+ // Only auto-play if queue was empty before and nothing was playing
await player.play();
}
}