playlist

when i add playlist to queue and restart the bot queue data not resitng
114 Replies
1Lucas1.apk
1Lucas1.apk2y ago
Could you explain better?
afraid-scarlet
afraid-scarletOP2y ago
When I add a playlist and restart the bot, it does not reset the database
1Lucas1.apk
1Lucas1.apk2y ago
I'll analyze the codes, then get back to you 🙂
afraid-scarlet
afraid-scarletOP2y ago
Can you make bot disconnect from voice channel in destroy optional ?
1Lucas1.apk
1Lucas1.apk2y ago
But by default it was supposed to leave when it was destroyed
afraid-scarlet
afraid-scarletOP2y ago
Yup I know I don’t want the bot to leave
1Lucas1.apk
1Lucas1.apk2y ago
We tested it and it deletes the contents of the databases. Is it that within the nodes it is not receiving the parameter to see when it is initialized?
afraid-scarlet
afraid-scarletOP2y ago
@1Lucas1.apk can i share a screen and see what I mean it and theres error some time the sessions undefined ex:
PATCH /v4/sessions/undefined/players/1078941688480935996, client=127.0.0.1, payload={"encodedTrack":"QAAAxAMAKVRvbSBPZGVsbCAtIEFub3RoZXIgTG92ZSAoT2ZmaWNpYWwgVmlkZW8pAAlUb20gT2RlbGwAAAAAAAPIwAALTXdwTUViZ0M3REEAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1Nd3BNRWJnQzdEQQEANGh0dHBzOi8vaS55dGltZy5jb20vdmkvTXdwTUViZ0M3REEvbWF4cmVzZGVmYXVsdC5qcGcAAAd5b3V0dWJlAAAAAAAAAAA=","volume":80}
PATCH /v4/sessions/undefined/players/1078941688480935996, client=127.0.0.1, payload={"encodedTrack":"QAAAxAMAKVRvbSBPZGVsbCAtIEFub3RoZXIgTG92ZSAoT2ZmaWNpYWwgVmlkZW8pAAlUb20gT2RlbGwAAAAAAAPIwAALTXdwTUViZ0M3REEAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1Nd3BNRWJnQzdEQQEANGh0dHBzOi8vaS55dGltZy5jb20vdmkvTXdwTUViZ0M3REEvbWF4cmVzZGVmYXVsdC5qcGcAAAd5b3V0dWJlAAAAAAAAAAA=","volume":80}
exotic-emerald
exotic-emerald2y ago
I seem to have encountered the same thing
afraid-scarlet
afraid-scarletOP2y ago
do you know how to fix it
exotic-emerald
exotic-emerald2y ago
no I'm also thinking about how to fix it
MEE6
MEE62y ago
GG @aaaaa, you just advanced to level 1!
1Lucas1.apk
1Lucas1.apk2y ago
Session Id is not being obtained 🤔 I can't translate messages When I get home I'll try to resolve it, now I'm at school, and the internet is really bad here
afraid-scarlet
afraid-scarletOP2y ago
Sometimes it works normally and sometimes it doesn't
1Lucas1.apk
1Lucas1.apk2y ago
Do you use the same lavalink for a bot? And in Debug it shows that the sessionId was obtained?
afraid-scarlet
afraid-scarletOP2y ago
yes Não, parece que a sessão não está definida No, it appears that the session is not defined
1Lucas1.apk
1Lucas1.apk2y ago
Strangely, the processes of both bots cannot correctly handle the data My Discord is buggy 😦 Could you record a video showing you testing or broadcast you testing?
afraid-scarlet
afraid-scarletOP2y ago
ok
1Lucas1.apk
1Lucas1.apk2y ago
😊 The same problem? I think my bot bypasses package errors and doesn't show them 🤔
afraid-scarlet
afraid-scarletOP2y ago
MEE6
MEE62y ago
GG @Ghos't, you just advanced to level 4!
afraid-scarlet
afraid-scarletOP2y ago
the error show when i added music to queue and restart the bot @1Lucas1.apk
1Lucas1.apk
1Lucas1.apk2y ago
No description
1Lucas1.apk
1Lucas1.apk2y ago
@Ghos't Do these Node logs appear in the console? ?play another love
Blobit - Moonlink.js
discordlogo Music.
<:Nota_Musica__Mlink:960665601574055966>╺╸Title:
<:Estrela_Mlink:960660485999587348>╺╸Uri:
<:emoji_21:967836966714503168>╺╸Author:
Tom Odell
<:emoji_23:967837516558393365>╺╸Duration:
0 Days, 0 Hours, 4 Minutes, 248 Seconds
From An unknown user
Request for: 1lucas1.apk
Blobit - Moonlink.js
Tom Odell - Another Love (Official Video) is playing now [ time test result: 434ms ]
afraid-scarlet
afraid-scarletOP2y ago
No
1Lucas1.apk
1Lucas1.apk2y ago
@Ghos't Could you download the new version and test it?
afraid-scarlet
afraid-scarletOP2y ago
yes i will doit now when i restart the bot and change the voice channel the error show
/v4/sessions/undefined/players/1078941688480935996, client=127.0.0.1, payload={"encodedTrack":"QAAAxAMAKVRvbSBPZGVsbCAtIEFub3RoZXIgTG92ZSAoT2ZmaWNpYWwgVmlkZW8pAAlUb20gT2RlbGwAAAAAAAPIwAALTXdwTUViZ0M3REEAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1Nd3BNRWJnQzdEQQEANGh0dHBzOi8vaS55dGltZy5jb20vdmkvTXdwTUViZ0M3REEvbWF4cmVzZGVmYXVsdC5qcGcAAAd5b3V0dWJlAAAAAAAAAAA=","volume":80}
/v4/sessions/undefined/players/1078941688480935996, client=127.0.0.1, payload={"encodedTrack":"QAAAxAMAKVRvbSBPZGVsbCAtIEFub3RoZXIgTG92ZSAoT2ZmaWNpYWwgVmlkZW8pAAlUb20gT2RlbGwAAAAAAAPIwAALTXdwTUViZ0M3REEAAQAraHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj1Nd3BNRWJnQzdEQQEANGh0dHBzOi8vaS55dGltZy5jb20vdmkvTXdwTUViZ0M3REEvbWF4cmVzZGVmYXVsdC5qcGcAAAd5b3V0dWJlAAAAAAAAAAA=","volume":80}
The problem is very strange
1Lucas1.apk
1Lucas1.apk2y ago
Bro, I think it's the environment that can't handle the information for 2 bots
afraid-scarlet
afraid-scarletOP2y ago
Sometimes it appears and sometimes it doesn't
1Lucas1.apk
1Lucas1.apk2y ago
Wait, I'll be right back Have you done a test on any host to see if the same error occurs? Moonlink stores a lot of information, and I think there may be a lot of processes for the CPU to solve Like the classes, they become something in RAM, the nodes are stored too There are also the remains Rest* The players are temporary, they are only used once and not surprisingly, the database is also It has maps
afraid-scarlet
afraid-scarletOP2y ago
ok i will try thx for your help
1Lucas1.apk
1Lucas1.apk2y ago
If you test on a host and it doesn't work, come back here again, then I'll debug in depth
afraid-scarlet
afraid-scarletOP2y ago
👍
1Lucas1.apk
1Lucas1.apk2y ago
Do you have access to node_modules? Search moonlink's dist/src/@Moonlink/MoonlinkNode.js for the line 218 E coloca abaixo esse log console.log("Received ready event with sessionId:", payload.sessionId);
exotic-emerald
exotic-emerald2y ago
Sometimes lavalink cannot play music normally after restarting
1Lucas1.apk
1Lucas1.apk2y ago
I will have to make some parameters to correct these errors This always occurs when you have not yet established a connection to lavalink It is always received by the payload
exotic-emerald
exotic-emerald2y ago
The same goes for skip music when reconnecting 🤯
1Lucas1.apk
1Lucas1.apk2y ago
In ready, it brings this information If it doesn't come, it could be an error with lavalink, or the connection is not being established. I'll put some ifs To prevent it from working if information is missing inside the package
exotic-emerald
exotic-emerald2y ago
umm ok 🤔 I will try again with the error that was triggered before
1Lucas1.apk
1Lucas1.apk2y ago
This week I didn't have much time, I missed 2 days And accumulated a lot of work From school
exotic-emerald
exotic-emerald2y ago
I'm triggered again
1Lucas1.apk
1Lucas1.apk2y ago
😔 I didn't understand
exotic-emerald
exotic-emerald2y ago
You can fix it when you have free time
1Lucas1.apk
1Lucas1.apk2y ago
Hoo, at night I do work in the morning, class in the afternoon, free time at night Sometimes I procrastinate in the morning and keep fixing bugs I leave it to do at school 🤣
exotic-emerald
exotic-emerald2y ago
The music in the list has not been deleted after the bot restarts. Me too 😂
1Lucas1.apk
1Lucas1.apk2y ago
I'm going to make a system to delete the json instead of just deleting it in the nodes And also check if the delete is really working The problem with the guy in this topic is that data from multiple bots is not being stored correctly in one environment
exotic-emerald
exotic-emerald2y ago
Maybe also add automatic exit from the voice channel 🧐
1Lucas1.apk
1Lucas1.apk2y ago
I also wanted to create a system to check the node closest to the voice channel It would be very useful When are the tracks finished?
exotic-emerald
exotic-emerald2y ago
Exciting
MEE6
MEE62y ago
GG @aaaaa, you just advanced to level 2!
exotic-emerald
exotic-emerald2y ago
When something abnormal happens with lavalink
1Lucas1.apk
1Lucas1.apk2y ago
It's because it also has autoResume But I think it makes sense AutoResume is if you restart lavalink it will continue all the players where it left off The rest I do another logic 😊 But there are some devs who don't like these things, can I make a parameter so that if an error occurs, it can be ignored?
exotic-emerald
exotic-emerald2y ago
Because the music cannot be played normally after reconnection, player.destroy() is required. It is recommended to have one more parameter
1Lucas1.apk
1Lucas1.apk2y ago
Have you tested by placing the autoResume parameter to see if it continues?
exotic-emerald
exotic-emerald2y ago
Haven't tried it yet, I'll try it now
1Lucas1.apk
1Lucas1.apk2y ago
And in the MoonlinkManager constructor in options I should have put your name in moonlink's READMe because I found a bug that time
exotic-emerald
exotic-emerald2y ago
My discord account is my sub-account ok i try
1Lucas1.apk
1Lucas1.apk2y ago
No problem, I'll upload it from Github
exotic-emerald
exotic-emerald2y ago
After I restarted lavalink, I was connected to lavalink but it did not play normally as expected. const options = { clientName: "awa", autoResume: true, };
1Lucas1.apk
1Lucas1.apk2y ago
I think all of these codes are becoming obsolete I will have to refactor MoonlinkManager, MoonlinkNodes, MoonlinkRest, the main ones that have not been cleaned for a long time I've already refactored the others, the only ones missing from the package
exotic-emerald
exotic-emerald2y ago
Looks like a big project
1Lucas1.apk
1Lucas1.apk2y ago
And makeRequest I will change to http3 To update I have to do it in parts, because everything at once is impossible. I'm still in MoonlinkPlayer in the documentation Compassion Brazilian expression 😊
exotic-emerald
exotic-emerald2y ago
It doesn’t matter if you update slowly
1Lucas1.apk
1Lucas1.apk2y ago
I'm really slow lol I think Saturday I'll start with Nodes Either Friday or tomorrow
exotic-emerald
exotic-emerald2y ago
This was also the case when I wrote bot before. ok I look forward to your updates
1Lucas1.apk
1Lucas1.apk2y ago
I think I would do well with a computer, because Instagram installed on my cell phone is something that keeps me entertained I'm doing something, and out of nowhere I'm on Instagram watching reels I got addicted to reels 🤣
exotic-emerald
exotic-emerald2y ago
i know 😂 Me too
1Lucas1.apk
1Lucas1.apk2y ago
It's everything, I'm washing dishes watching reels, I open Netflix on TV and I'm watching reels, I'm doing school work watching reels When it comes to school work and programming, it’s a hindrance. Because I do it on my cell phone I only really have a cell phone And I program and out of nowhere I'm on the reels
exotic-emerald
exotic-emerald2y ago
me too
MEE6
MEE62y ago
GG @aaaaa, you just advanced to level 3!
1Lucas1.apk
1Lucas1.apk2y ago
Well, I'm going to get ready to go to school, have a great day 🙂
exotic-emerald
exotic-emerald2y ago
Mobile phone writing program ? ok bye~
1Lucas1.apk
1Lucas1.apk2y ago
Yes, it's all on your cell phone I never had a computer
exotic-emerald
exotic-emerald2y ago
Why not buy a computer
1Lucas1.apk
1Lucas1.apk2y ago
I still depend a lot on my parents
exotic-emerald
exotic-emerald2y ago
umm ok But is it easy to develop in this way?
1Lucas1.apk
1Lucas1.apk2y ago
It's more or less, it depends on the IDE If you use some more accessible ones, I think the only one I've seen that is like this is replit Now others like other software like pterodactyl It is a little complicated If I had time to have one less short-term job, and if I worked together, I think I would have, but I don't even have time, there are 23 subjects in the year I've been at school.
exotic-emerald
exotic-emerald2y ago
i like pterodactyl ( X
1Lucas1.apk
1Lucas1.apk2y ago
I like it too, but on cell phones it's a bit complicated
exotic-emerald
exotic-emerald2y ago
ummm 🤯 yes
1Lucas1.apk
1Lucas1.apk2y ago
Like if you make a project with several subfolders And you have to test
exotic-emerald
exotic-emerald2y ago
The phone is difficult to control
1Lucas1.apk
1Lucas1.apk2y ago
And error You have to go into all the folders until you find Out of nowhere I felt like installing termux to test a package to hack wifi 🤔
exotic-emerald
exotic-emerald2y ago
termux I haven't used it🧐 what are you from
1Lucas1.apk
1Lucas1.apk2y ago
Brazil In the state of Amazonas I think it's the best known abroad
1Lucas1.apk
1Lucas1.apk2y ago
No description
1Lucas1.apk
1Lucas1.apk2y ago
Discovering that I don't know how to use termux apt install nodejs was giving error apt install node nothing happens
exotic-emerald
exotic-emerald2y ago
i taiwan I don't know how to use it either 😂
1Lucas1.apk
1Lucas1.apk2y ago
I just know that where I live, it's too hot
1Lucas1.apk
1Lucas1.apk2y ago
No description
1Lucas1.apk
1Lucas1.apk2y ago
Now it appears that it has been installed and the thing doesn’t work 🤣
exotic-emerald
exotic-emerald2y ago
me too 🤯 replit can lavalink be set up?
1Lucas1.apk
1Lucas1.apk2y ago
Yes But in the repl it can fall a lot You create one in bash, install python3 and jdk nix Then you make a command to start in main.sh Or make a system in nodejs To start Mine is on this system that updates every time it starts
exotic-emerald
exotic-emerald2y ago
The effect feels bad
1Lucas1.apk
1Lucas1.apk2y ago
🤔 I didn't understand correctly
exotic-emerald
exotic-emerald2y ago
I just feel like it doesn’t work well when I use it.
1Lucas1.apk
1Lucas1.apk2y ago
There are times when it gives a strange error Invalid certificate type, 1 day passed with this error I forked it and it worked again
exotic-emerald
exotic-emerald2y ago
🤯 Doesn't seem suitable for installation in replit
1Lucas1.apk
1Lucas1.apk2y ago
I don't think so either, replit is like it was just a playground for testing, not for hosting. But, do what Hahahaha I tried running LlaMa on the repl I was able to install everything but it needs more RAM and storage
exotic-emerald
exotic-emerald2y ago
i now use hosting ( X This is also a headache 😂
1Lucas1.apk
1Lucas1.apk2y ago
🤣 If I could, I would continue the application that loudizes in the chat #repository-search
MEE6
MEE62y ago
GG @1Lucas1.apk, you just advanced to level 27!
1Lucas1.apk
1Lucas1.apk2y ago
GPT wasn't solving it anymore
exotic-emerald
exotic-emerald2y ago
Does it only support English?
MEE6
MEE62y ago
GG @aaaaa, you just advanced to level 4!
1Lucas1.apk
1Lucas1.apk2y ago
No Supports all languages But it was a huge request And gpt-3.5-turbo-16k wasn't handling so many parameters that it didn't respond properly LlaMa could customize within it It was just training
exotic-emerald
exotic-emerald2y ago
cool I have never written this type of project
1Lucas1.apk
1Lucas1.apk2y ago
Some parts are very complicated Like cutting the text to have exactly 2000, a text that can be more than 10000 characters And there is also when the user sends a very long text And the code is together, it may give a request error Because I have a lot of things There is another one that has a history that is easier
exotic-emerald
exotic-emerald2y ago
It's really complicated to say that. 🤯
1Lucas1.apk
1Lucas1.apk2y ago
When it got close to working I left the code exactly intact I think if you move something it might stop working Hahahaha
exotic-emerald
exotic-emerald2y ago
😂 😂 I understand this feeling
1Lucas1.apk
1Lucas1.apk2y ago
🤣🤣

Did you find this page helpful?