-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Becomes unresponsive after first disconnection #16
Comments
Quick upddate: the bot doesn't need to disconnect, you just have to change channels while the bot is running (doesn't even need to be playing) for the bot to go crazy. |
Sorry, but I can't reproduce this. Are you running the latest version? Screen.Recording.2022-07-26.at.5.47.37.PM.mov |
Running latest, directly pulled from docker-hub I can confirm librespot works pefectly fine. |
Here's my implementation in NodeJS (Typescript) to confirm the bot has all needed permissions to join voice channels. firefox_sAvWIteuoJ.mp4
|
I would double-check the Discord user ID provided to the bot. Please also try setting the environment variables |
The id is perfectly fine.
Here's another log i got by solving the panic above (the panic was in librespot itself).
The bot just straight up REFUSES to join my voice channel, and my discord ID is correct. |
I started creating a PR to bump the dependencies, might help with your issue: #17 (still needs some fixes before it'll build). |
Does this problem still persist? |
Hello, cloudybyte. |
I've noticed the same issue in the past, but rarely use discord VC these days. If I'd had to guess I'd say it has something to do with the binary protocol Spotify uses to transmit the audio stream. Something in there probably got changed or mixed up which results in this weird behavior. Can't promise it though. As I currently don't have time for collab here, @codetheweb doesn't seem interested in looking into this and there are no other contributors this will probably persist for the forseeable future. However if you're interested in picking this up, I'd be happy to offer a helping hand. @nodgear |
I was waiting for @nodgear to respond. 😅 That being said I do have a lot going on so if you want to take a stab it it @CloudyByte that'd be great. |
Experiencing the same issue. |
So I have done some digging around. The problem seem to be that the player is not really stopped when paused, if you pause the player for a bigger amount of time 10+ while it is in a channel and try to start it, its gonna try to catch up to the new player position. Seems to be something wrong with how the player is paused. The second issue with |
Just to clarify: |
Interesting, the current code does assume that the bot is only used with one guild; maybe we should add a note to the readme or even throw inside the bot if more than one guild is detected. |
Another small thing I noticed: Maybe we should change it to use BitsPerSecond to match the dicord bitrate of 96. Line 289 in 371ca72
Line 147 in 371ca72
|
Found a workaround for the drifting in sound. Will do a pull request later today. |
Afaik discords backend lets you stream in whatever quality you want. The bitrate slider in VC settings only controls the clients output. |
The (once) huge music bots would have had to do an incredible amount of reencoding if that wasn't the case. (I kind of remember one of their devs explaining it to me.) Its basically an intentional loophole, known but left open by discord, to support the bot devs. |
Bot works fine when first joining a voice channel, it connects and plays as usual.
But as soon it disconnects from a voice channel it never comes back, the following error is sent on console every time you join a new voice channel.
The text was updated successfully, but these errors were encountered: