mirror of
https://github.com/JonnyBro/JaBa.git
synced 2025-01-19 17:03: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
|
||||
.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 }) }))
|
||||
|
|
Loading…
Reference in a new issue