JDOG
Explore posts from serversMIA🎶 Moonlink.js - Imagine a Music Application
•Created by frozen-sapphire on 9/8/2023 in #help
Playing local files
Okay thanks!
8 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by genetic-orange on 9/8/2023 in #help
Playing local files
Yea, so for example if I have an .mp3 file, what would be the proper way of streaming that with lavalink if your library supports that?
8 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by optimistic-gold on 9/7/2023 in #help
'trackEnd' Listener never being called
Thanks, will do!
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by like-gold on 9/7/2023 in #help
'trackEnd' Listener never being called
gotcha, well yours seems like the best library for lavalink, so keep at it 🔥
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by correct-apricot on 9/7/2023 in #help
'trackEnd' Listener never being called
Cool, is this client library relatively new?
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by sensitive-blue on 9/7/2023 in #help
'trackEnd' Listener never being called
And thanks you too!
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by solid-orange on 9/7/2023 in #help
'trackEnd' Listener never being called
yup, I added the 'queueEnd' listener and that is triggered when there is only one song. I would specify that in your documentation if possible 👍
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by sunny-green on 9/7/2023 in #help
'trackEnd' Listener never being called
ahhh, thank you! I will test that right now
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by conscious-sapphire on 9/7/2023 in #help
'trackEnd' Listener never being called
No, there needs to be more than one song?
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by unwilling-turquoise on 9/7/2023 in #help
'trackEnd' Listener never being called
Here is where my client stuff is initialized:
client.moon = new MoonlinkManager([{
host: 'localhost',
port: 2333,
secure: false,
password: lavalinkPassword
}], { /* Option */ }, (guild, sPayload) => {
client.guilds.cache.get(guild).shard.send(JSON.parse(sPayload))
});
//emit to the console the node was connected to
client.moon.on('nodeCreate', (node) => {
console.log('${node.host} was connected');
});
client.moon.on('trackStart', async(player, track) => {
console.log("TRACK STARTED");
});
client.moon.on('trackEnd', async(player, track) => {
console.log("TRACK ENDED");
});
client.on('ready', async () => {
client.moon.init(client.user.id);
...
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by genetic-orange on 9/7/2023 in #help
'trackEnd' Listener never being called
so it is just something wrong with my code then?
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by conscious-sapphire on 9/7/2023 in #help
'trackEnd' Listener never being called
it seems like only sometimes the 'trackStart' is triggered as well. It seems random at this point, it could be my code but also not sure.
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by apparent-cyan on 9/7/2023 in #help
'trackEnd' Listener never being called
awesome thank you, let me know 😀
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by dependent-tan on 9/7/2023 in #help
'trackEnd' Listener never being called
okay thanks
46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by unwilling-turquoise on 9/7/2023 in #help
'trackEnd' Listener never being called
Hmmm, what is the correct way of grabbing the player object then? I am using:
client.moon.players.get(guildId);
(wondering if this could be the problem)46 replies
MIA🎶 Moonlink.js - Imagine a Music Application
•Created by sunny-green on 9/7/2023 in #help
'trackEnd' Listener never being called
okay thanks
46 replies