delete message after music ends

This commit is contained in:
JonnyBro 2021-12-27 00:51:57 +05:00
parent fc6b112bcd
commit df091a05d0

View file

@ -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 })))