Song information is fetched but there is no sound
Song information is fetched but there is no sound
73 Replies
evident-indigo•14mo ago
LL logs please
Wait

evident-indigo•14mo ago
The code of your index.js, please
I use a code in the npm page
evident-indigo•14mo ago
It seems like:
client.on("raw", data => {
// Updating the Moonlink.js package with the necessary data
client.moon.packetUpdate(data);
});
Is missing. Is it?
:hi:
GG @' 3z, you just advanced to level 1!
evident-indigo•14mo ago
?-?
Yes
evident-indigo•14mo ago
Add it and it will work LMAO
Okk
Wait
evident-indigo•14mo ago
I have class now
Sorry
i add it
The same problem
Are the intents so active?
discord intents ?
evident-indigo•14mo ago
LL logs again
Yes

evident-indigo•14mo ago
May I see your index.js?
evident-indigo•14mo ago
If you console.log('idk') inside the Raw, does it print?
evident-indigo•14mo ago
The play command isn't necessary, it's working flawlessly
yes
evident-indigo•14mo ago
console.log(data) and show what it prints

evident-indigo•14mo ago
I need the rest, specifically what prints when the bot joins the channel
evident-indigo•14mo ago
I need to know what's the state of VOICE_SERVER_UPDATE
Those informations are harmless.. they become unusable after the bot restarts its main gateway or leaves the channel
this ?
evident-indigo•14mo ago
I'm confused now
@1Lucas1.apk Eu vou dar uma olhada, mas talvez seja melhor que você olhe
Por algum motivo não ta enviando o voice data
Which moonlink.js version are you using?
GG @' 3z, you just advanced to level 2!
evident-indigo•14mo ago
(Just a heads up, fs is a built-in node module, not a npm, feel free to remove it)
ok thx
evident-indigo•14mo ago
And LL and discordjs/voice are incompatible as only one instance can be connected to the voice gateway
I'll look into the internals of moonlink.js to see if I can catch anything that may cause this
ok
evident-indigo•14mo ago
https://github.com/Ecliptia/moonlink.js/blob/v3/dist/src/%40Managers/PlayerManager.js#L45
In this line, below the function, could you add a
console.log(this.voices[guildId])
?GitHub
moonlink.js/dist/src/@Managers/PlayerManager.js at v3 · Ecliptia/mo...
MoonLink.js is a simple package for lavalink client, perfect for you to create your discord bot with songs, and very simple and easy to use. - Ecliptia/moonlink.js
evident-indigo•14mo ago
@1Lucas1.apk Eu já falei que é || não &&. Se for &&, e faltar um deles, ele vai enviar mesmo assim
Por isso o NL tava puto no logs de alguém que tinha visto aà pelo moonlink mandar só o sessionId 💀
evident-indigo•14mo ago
https://github.com/Ecliptia/moonlink.js/blob/v3/dist/src/%40Managers/PlayerManager.js#L68
console.log('Sent voice data')
GitHub
moonlink.js/dist/src/@Managers/PlayerManager.js at v3 · Ecliptia/mo...
MoonLink.js is a simple package for lavalink client, perfect for you to create your discord bot with songs, and very simple and easy to use. - Ecliptia/moonlink.js
evident-indigo•14mo ago
(outside the } btw)


evident-indigo•14mo ago
It was meant to be outside, but that also works -- may I see LL logs?

evident-indigo•14mo ago
Now it seems fine
???
I'm confused, but okay
It should output audio now, no?
:hi:
Yes, but so far no sound is coming out
evident-indigo•14mo ago
could you try using https://github.com/PerformanC/NodeLink which is a bit more expressive with issues?
GitHub
GitHub - PerformanC/NodeLink: Performant LavaLink alternative writt...
Performant LavaLink alternative written with Node.Js - PerformanC/NodeLink
LavaLink host ?
evident-indigo•14mo ago
Alternative, yes
Lucas, tu ta de coplô com o NL pra eu não conseguir desenvolver o CogLink?
how i use it
evident-indigo•14mo ago

evident-indigo•14mo ago
node -v
Which Node.js are you using?
v16.16.0
evident-indigo•14mo ago
I recommend you to update it, but if you don't want to:
ok its work
evident-indigo•14mo ago
Try playing & please take a screenshot of the NodeLink logs

evident-indigo•14mo ago
It's not playing/outputting audio?
its played music and there was sound, but the sound was intermittent
evident-indigo•14mo ago
Wdym intermittent?
lag
GG @' 3z, you just advanced to level 3!
evident-indigo•14mo ago
GC collections -- although your machine needs to be really underpowered to actually have it seen
Is your network good?
In any way -- I don't see why LavaLink isn't playing, I'll let Lucas handle it if you want to use it
yes my network is good
evident-indigo•14mo ago
Is that a good hardware?
And are you running it on Windows?
Manda ele usar o Github no branch development eu mudei
Mas esse problema não é da moonlink, que ele manda o payload imediatamente quando recebe as informações
evident-indigo•14mo ago
Eu sei
É da LL ou do hardware dele
O NodeLink não deveria dar pausar tão longas assim como ditas
yes
yes
evident-indigo•14mo ago
That's the reason
For some reason, one of the internals seems to perform bad on Windows, lagging a lot
You can try use other libraries like:
@discordj/opus
libsodium-wrappers
if you want to try:
npm rm opusscript sodium-native
npm i @discordjs/opus libsodium-wrappers