mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-04-19 21:03:56 +02:00
implement @udany's fix
This commit is contained in:
parent
811c80d544
commit
b91e072e2f
1 changed files with 8 additions and 4 deletions
|
@ -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}`);
|
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) {
|
if (player.voiceConnection === null) {
|
||||||
await player.connect(targetVoiceChannel);
|
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();
|
await player.play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue