mirror of
https://github.com/JonnyBro/JaBa.git
synced 2025-01-20 01:13:47 +05:00
Фикс (ура)
This commit is contained in:
parent
9bf142dd08
commit
434a35f4ba
1 changed files with 2 additions and 2 deletions
|
@ -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 }) }))
|
||||||
|
|
Loading…
Reference in a new issue