mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-10 12:11:35 +02:00
Allow skipping past current song in empty queue
This commit is contained in:
parent
18e851821c
commit
53cd705bde
3 changed files with 11 additions and 2 deletions
|
@ -23,10 +23,15 @@ export default class implements Command {
|
|||
try {
|
||||
queue.forward();
|
||||
|
||||
await this.playerManager.get(msg.guild!.id).play();
|
||||
if (queue.isEmpty()) {
|
||||
this.playerManager.get(msg.guild!.id).disconnect();
|
||||
} else {
|
||||
await this.playerManager.get(msg.guild!.id).play();
|
||||
}
|
||||
|
||||
await msg.channel.send('keepin\' \'er movin\'');
|
||||
} catch (_) {
|
||||
console.log(_);
|
||||
await msg.channel.send('no song to skip to');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue