Фикс (ура)

This commit is contained in:
JonnyBro 2022-01-31 20:46:23 +05:00
parent 9bf142dd08
commit 434a35f4ba

View file

@ -78,14 +78,14 @@ class JaBa extends Client {
this.player this.player
.on("playSong", async (queue, song) => { .on("playSong", async (queue, song) => {
const m = await queue.textChannel.send({ content: this.translate("music/play:NOW_PLAYING", { songName: song.name }) }); const m = await queue.textChannel.send({ content: this.translate("music/play:NOW_PLAYING", { songName: song.name }) });
if (!song.isLive) { if (song.duration > 1) {
setTimeout(() => { setTimeout(() => {
if (m.deletable) m.delete(); if (m.deletable) m.delete();
}, song.duration * 1000); }, song.duration * 1000);
} else { } else {
setTimeout(() => { setTimeout(() => {
if (m.deletable) m.delete(); 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 }) })) .on("addSong", (queue, song) => queue.textChannel.send({ content: this.translate("music/play:ADDED_QUEUE", { songName: song.name }) }))