EI
optimistic-gold
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
optimistic-goldOP•2y ago

optimistic-goldOP•2y 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
deep-jade•2y 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
deep-jade•2y ago
Then it's a (possible) Moonlink bug ❤️
It's not a critical error, it comes from the loadType error if
deep-jade•2y 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
optimistic-goldOP•2y 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
deep-jade•2y 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
optimistic-goldOP•2y ago
deep-jade•2y ago
@1Lucas1.apk
O NL ta dboa pelo menos
deep-jade•2y ago
https://www.youtube.com/watch?v=mP7sHrJGEKs&list=RDmP7sHrJGEKs
That URL doesn't seem to be valid at all
deep-jade•2y ago
Well, there's no playlist/mix for it, so yeah, empty
optimistic-goldOP•2y ago
no need for a playlist
deep-jade•2y 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
optimistic-goldOP•2y ago
so?
error on my side?
deep-jade•2y ago
It boils down to @1Lucas1.apk to decide whether or not when autoplay fails it should emit trackEnd
optimistic-goldOP•2y ago
alrighty
truth, the broadcast is missing from autoplay
I will update soon
optimistic-goldOP•2y 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
optimistic-goldOP•2y ago
yeah works
GG @deleted_user_f8d2b1e7c3a9, you just advanced to level 3!