From 434a35f4ba4d7413444c98572f6aa6410004f1d8 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Mon, 31 Jan 2022 20:46:23 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20(=D1=83=D1=80=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/JaBa.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/JaBa.js b/base/JaBa.js index cbc0f02e..e50241f8 100644 --- a/base/JaBa.js +++ b/base/JaBa.js @@ -78,14 +78,14 @@ class JaBa extends Client { this.player .on("playSong", async (queue, song) => { const m = await queue.textChannel.send({ content: this.translate("music/play:NOW_PLAYING", { songName: song.name }) }); - if (!song.isLive) { + if (song.duration > 1) { setTimeout(() => { if (m.deletable) m.delete(); }, song.duration * 1000); } else { setTimeout(() => { if (m.deletable) m.delete(); - }, 60 * 1000); + }, 10 * 60 * 1000); // m * s * ms } }) .on("addSong", (queue, song) => queue.textChannel.send({ content: this.translate("music/play:ADDED_QUEUE", { songName: song.name }) }))