From d886309e6491ad699af54c51947742d9d52fbe1f Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sun, 19 Dec 2021 16:57:00 +0500 Subject: [PATCH] disable loop if enabled --- commands/Music/loop.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/Music/loop.js b/commands/Music/loop.js index a3da53a9..6e3c2109 100644 --- a/commands/Music/loop.js +++ b/commands/Music/loop.js @@ -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 {