mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-11 12:21:37 +02:00
Small bug fixes
This commit is contained in:
parent
4659717e5f
commit
f25467a41d
6 changed files with 29 additions and 16 deletions
|
@ -102,7 +102,11 @@ export default class implements Command {
|
|||
}
|
||||
|
||||
if (nSongsNotFound !== 0) {
|
||||
extraMsg += `and ${nSongsNotFound.toString()} songs were not found`;
|
||||
if (nSongsNotFound === 1) {
|
||||
extraMsg += 'and 1 song was not found';
|
||||
} else {
|
||||
extraMsg += `and ${nSongsNotFound.toString()} songs were not found`;
|
||||
}
|
||||
}
|
||||
|
||||
newSongs.push(...convertedSongs);
|
||||
|
@ -140,12 +144,12 @@ 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 (player.voiceConnection === null) {
|
||||
await player.connect(targetVoiceChannel);
|
||||
}
|
||||
|
||||
if (queueOldSize === 0 && !wasPlayingSong) {
|
||||
// Only auto-play if queue was empty before and nothing was playing
|
||||
if (player.voiceConnection === null) {
|
||||
await player.connect(targetVoiceChannel);
|
||||
}
|
||||
|
||||
await player.play();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue