ExoticLegion
ExoticLegion
MIA🎶 Moonlink.js - Imagine a Music Application
Created by ExoticLegion on 3/29/2025 in #help
Web socket is not defined
oh alr
5 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Enyz on 6/14/2024 in #help
Spotify
if you ever have issues just put it in chatgpt ik it sounds stupid and lazy but it works
27 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Enyz on 6/14/2024 in #help
Spotify
lmk if that works
27 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by Enyz on 6/14/2024 in #help
Spotify
try this
let time = 0;
const queueMap = player.queue.getQueue();

if (player.queue.size > 0 && queueMap) {
queueMap.forEach((track) => {
if (track && track.duration) {
time += track.duration;
}
});

if (player.queue.current && player.queue.current.duration) {
time += player.queue.current.duration - player.position;
}

trackAdded.addFields({
name: "Estimated time\nuntil playing",
value: `${convertTime(time)}`,
inline: true
});
}
let time = 0;
const queueMap = player.queue.getQueue();

if (player.queue.size > 0 && queueMap) {
queueMap.forEach((track) => {
if (track && track.duration) {
time += track.duration;
}
});

if (player.queue.current && player.queue.current.duration) {
time += player.queue.current.duration - player.position;
}

trackAdded.addFields({
name: "Estimated time\nuntil playing",
value: `${convertTime(time)}`,
inline: true
});
}
27 replies