trackEnd not fired?
elloo sooo i'm just trying to destory the player after the track ended but with the event it is not working
30 Replies
deep-jadeOP•12mo ago

deep-jadeOP•12mo ago
and after the track is ended, i get this debug message
The information you provided is very superficial, you need to go into more detail, for example the lavalink or nodelink logs, moonlink logs
GitHub
moonlink.js/src/@Managers/MoonlinkManager.ts at 43b0214259d2ac073c9...
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
the error comes from serach
search
does not appear to be the destruction of the player
and also, it doesn't seem cool to me to destroy the player every time in trackEnd
exotic-emerald•12mo ago
Unlikely but I believe it's a NL bug, unless you're using a moonlink version with MoonlinkWebsockey
If the node says it has ended the track in the console, then yes, Moonlink bug
the log comes from search
not from trackEnd
exotic-emerald•12mo ago
Then it's a (possible) Moonlink bug ❤️
It's not a critical error, it comes from the loadType error if
exotic-emerald•12mo ago
Oh lmao
Have you added extra NL types?
if (["error", "empty"].includes(res.loadType)) {
this.emit(
"debug",
"@Moonlink(Manager) - not found or there was an error loading the track"
It has nothing to do with trackEnd
deep-jadeOP•12mo ago
hello sorry i slept :shy: i can send u nodelink logs later if u want
yeh but i don’t want the player to stay in the vc
but trackend is not even fired
exotic-emerald•12mo ago
If it failed to search, it won't play, so there's no way to emit trackEnd
That's why I said, that's it
information is very superficial
we need more information
for example, the lavalink or nodelink logs
put console.log in codes
etc
deep-jadeOP•12mo ago
exotic-emerald•12mo ago
@1Lucas1.apk
O NL ta dboa pelo menos
exotic-emerald•12mo ago
https://www.youtube.com/watch?v=mP7sHrJGEKs&list=RDmP7sHrJGEKs
That URL doesn't seem to be valid at all
exotic-emerald•12mo ago
Well, there's no playlist/mix for it, so yeah, empty
deep-jadeOP•12mo ago
no need for a playlist
exotic-emerald•12mo ago
Well, list=RD... is a mix
Seems like autoplay tried to find a search for that track
But it didn't find
so it just ended there
deep-jadeOP•12mo ago
so?
error on my side?
exotic-emerald•12mo ago
It boils down to @1Lucas1.apk to decide whether or not when autoplay fails it should emit trackEnd
deep-jadeOP•12mo ago
alrighty
truth, the broadcast is missing from autoplay
I will update soon
deep-jadeOP•12mo ago
:ablush:
I'm forgotten 🫠
test first: npm i https://github.com/Ecliptia/moonlink.js
GitHub
GitHub - Ecliptia/moonlink.js: MoonLink.js is a simple package for ...
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. - GitHub - Ecliptia/moonlink.js: MoonLink.js is a simpl...
@deleted_user_f8d2b1e7c3a9
deep-jadeOP•12mo ago
yeah works
GG @deleted_user_f8d2b1e7c3a9, you just advanced to level 3!