Problem with voice

Hi, I want to play music through a bot and I did it on my computer, but when I transfer files to the Ubuntu server, it does not work, through analysis I found that only the connection status will change, on the computer "ready", and on Ubuntu "signalling". There were no changes in the code, all dependencies are saved and have the same versions, discord js version 14.14.1. Can you help me with this problem?
No description
7 Replies
d.js toolkit
d.js toolkit12mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
ShompiFlen
ShompiFlen12mo ago
is this a remote vps like heroku or these vps that you host bots for free replit? does any error occur if you let the bot run for a few minutes?
Unjin
UnjinOP12mo ago
Such as heroku Yesterday I turned on the audio file on the host and everything worked, then I left it overnight and in the morning it no longer worked Now I'm turning on the audio via the link Also, if you look at player.on StateChange, the program will be autopaused => playing, playing => idle And all this is instantaneous
ShompiFlen
ShompiFlen12mo ago
are you trying to play a local file that doesnt exist in your vps
Unjin
UnjinOP12mo ago
no, I transferred this file and it worked, now I'll do it again for verification Yes it works with a file And I need a link More precisely, it receives all the data, even the link to the song itself, but when it turns on after 0.1 seconds it turns off And also, when I run the connection status file "signalling" Of course, I can download an audio file, but I consider this as an extreme case. After all, what happens if the file weighs GB or more Can anybody help me?
ShompiFlen
ShompiFlen12mo ago
well im not going to ask from where are you getting these files but this sounds like its against tos
Unjin
UnjinOP12mo ago
What do you mean? What's wrong? Now I have an assumption that the link does not have time to load and the bot thinks that the song is over, so it makes a full cycle without a song The link with music file I’m already solved this problem The problem was with ffmpeg-static, because I have 2 ffmpeg in Ubuntu, I just delete ffmpeg-static from node-modules
Want results from more Discord servers?
Add your server