playlist
when i add playlist to queue and restart the bot queue data not resitng
114 Replies
Could you explain better?
afraid-scarletOP•2y ago
When I add a playlist and restart the bot, it does not reset the database
I'll analyze the codes, then get back to you 🙂
afraid-scarletOP•2y ago
Can you make bot disconnect from voice channel in destroy optional ?
But by default it was supposed to leave when it was destroyed
afraid-scarletOP•2y ago
Yup I know I don’t want the bot to leave
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-scarletOP•2y ago
@1Lucas1.apk can i share a screen and see what I mean it
and theres error some time the sessions undefined
ex:
exotic-emerald•2y ago
I seem to have encountered the same thing
afraid-scarletOP•2y ago
do you know how to fix it
exotic-emerald•2y ago
no I'm also thinking about how to fix it
GG @aaaaa, you just advanced to level 1!
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-scarletOP•2y ago
Sometimes it works normally and sometimes it doesn't
Do you use the same lavalink for a bot?
And in Debug it shows that the sessionId was obtained?
afraid-scarletOP•2y ago
yes
Não, parece que a sessão não está definida
No, it appears that the session is not defined
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-scarletOP•2y ago
ok
😊
The same problem?
I think my bot bypasses package errors and doesn't show them 🤔
afraid-scarletOP•2y ago
GG @Ghos't, you just advanced to level 4!
afraid-scarletOP•2y ago
the error show when i added music to queue and restart the bot
@1Lucas1.apk

@Ghos't Do these Node logs appear in the console?
?play another love

<: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

Request for: 1lucas1.apk
Tom Odell - Another Love (Official Video) is playing now [ time test result: 434ms ]
afraid-scarletOP•2y ago
No
@Ghos't Could you download the new version and test it?
afraid-scarletOP•2y ago
yes i will doit now
when i restart the bot and change the voice channel the error show
The problem is very strange
Bro, I think it's the environment that can't handle the information for 2 bots
afraid-scarletOP•2y ago
Sometimes it appears and sometimes it doesn't
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-scarletOP•2y ago
ok i will try
thx for your help
If you test on a host and it doesn't work, come back here again, then I'll debug in depth
afraid-scarletOP•2y 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•2y ago
Sometimes lavalink cannot play music normally after restarting
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•2y ago
The same goes for skip music when reconnecting
🤯
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•2y ago
umm ok 🤔
I will try again with the error that was triggered before
This week I didn't have much time, I missed 2 days
And accumulated a lot of work
From school
exotic-emerald•2y ago
I'm triggered again
😔 I didn't understand
exotic-emerald•2y ago
You can fix it when you have free time
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•2y ago
The music in the list has not been deleted after the bot restarts.
Me too 😂
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•2y ago
Maybe also add automatic exit from the voice channel
🧐
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•2y ago
Exciting
GG @aaaaa, you just advanced to level 2!
exotic-emerald•2y ago
When something abnormal happens with lavalink
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•2y ago
Because the music cannot be played normally after reconnection, player.destroy() is required.
It is recommended to have one more parameter
Have you tested by placing the autoResume parameter to see if it continues?
exotic-emerald•2y ago
Haven't tried it yet, I'll try it now
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•2y ago
My discord account is my sub-account
ok i try
No problem, I'll upload it from Github
exotic-emerald•2y ago
After I restarted lavalink, I was connected to lavalink but it did not play normally as expected.
const options = {
clientName: "awa",
autoResume: true,
};
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•2y ago
Looks like a big project
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•2y ago
It doesn’t matter if you update slowly
I'm really slow lol
I think Saturday I'll start with Nodes
Either Friday or tomorrow
exotic-emerald•2y ago
This was also the case when I wrote bot before.
ok I look forward to your updates
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•2y ago
i know
😂
Me too
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•2y ago
me too
GG @aaaaa, you just advanced to level 3!
Well, I'm going to get ready to go to school, have a great day 🙂
exotic-emerald•2y ago
Mobile phone writing program ?
ok bye~
Yes, it's all on your cell phone
I never had a computer
exotic-emerald•2y ago
Why not buy a computer
I still depend a lot on my parents
exotic-emerald•2y ago
umm ok But is it easy to develop in this way?
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•2y ago
i like pterodactyl ( X
I like it too, but on cell phones it's a bit complicated
exotic-emerald•2y ago
ummm 🤯
yes
Like if you make a project with several subfolders
And you have to test
exotic-emerald•2y ago
The phone is difficult to control
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•2y ago
termux I haven't used it🧐
what are you from
Brazil
In the state of Amazonas
I think it's the best known abroad

Discovering that I don't know how to use termux
apt install nodejs was giving error
apt install node nothing happens
exotic-emerald•2y ago
i taiwan
I don't know how to use it either 😂
I just know that where I live, it's too hot

Now it appears that it has been installed and the thing doesn’t work 🤣
exotic-emerald•2y ago
me too
🤯
replit can lavalink be set up?
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•2y ago
The effect feels bad
🤔 I didn't understand correctly
exotic-emerald•2y ago
I just feel like it doesn’t work well when I use it.
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•2y ago
🤯
Doesn't seem suitable for installation in replit
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•2y ago
i now use hosting ( X
This is also a headache
😂
🤣
If I could, I would continue the application that loudizes in the chat #repository-search
GG @1Lucas1.apk, you just advanced to level 27!
GPT wasn't solving it anymore
exotic-emerald•2y ago
Does it only support English?
GG @aaaaa, you just advanced to level 4!
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•2y ago
cool
I have never written this type of project
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•2y ago
It's really complicated to say that.
🤯
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•2y ago
😂 😂
I understand this feeling
🤣🤣