mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
disable loop if enabled
This commit is contained in:
parent
adf999ec7f
commit
d886309e64
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,8 @@ class Loop extends Command {
|
|||
|
||||
if (args[0].toLowerCase() === "queue") {
|
||||
if (!queue.loopMode) {
|
||||
if (queue.repeatMode) this.client.player.setRepeatMode(message, false);
|
||||
|
||||
this.client.player.setLoopMode(message, true);
|
||||
message.success("music/loop:QUEUE", { loop: "включён" });
|
||||
} else {
|
||||
|
@ -34,6 +36,8 @@ class Loop extends Command {
|
|||
};
|
||||
} else if (args[0].toLowerCase() === "song") {
|
||||
if (!queue.repeatMode) {
|
||||
if (queue.loopMode) this.client.player.setLoopMode(message, false);
|
||||
|
||||
this.client.player.setRepeatMode(message, true);
|
||||
message.success("music/loop:QUEUE", { loop: "включён" });
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue