From df091a05d0efe18f3f3e64a847e6a23b87759292 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Mon, 27 Dec 2021 00:51:57 +0500 Subject: [PATCH] delete message after music ends --- base/JaBa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/JaBa.js b/base/JaBa.js index 1bdf8ecd..aeccc8fd 100644 --- a/base/JaBa.js +++ b/base/JaBa.js @@ -66,7 +66,7 @@ class JaBa extends Client { const m = await queue.textChannel.send(this.translate("music/play:NOW_PLAYING", { songName: song.name })) setTimeout(() => { m.delete(); - }, 5000); + }, song.duration * 1000); }) .on("addSong", (queue, song) => queue.textChannel.send(this.translate("music/play:ADDED_QUEUE", { songName: song.name }))) .on("addList", (queue, playlist) => queue.textChannel.send(this.translate("music/play:ADDED_QUEUE_COUNT", { songCount: playlist.songs.length })))