Skip to content
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

Stop working after ~15 minutes. #8

Open
AI-Maria opened this issue Mar 26, 2024 · 5 comments
Open

Stop working after ~15 minutes. #8

AI-Maria opened this issue Mar 26, 2024 · 5 comments

Comments

@AI-Maria
Copy link

No exceptions. Before work is stopped client receive packets with 0 power.

Code:

def base_callback(user, data: voice_recv.VoiceData):
    print(f"Got packet from {user}")
    ext_data = data.packet.extension_data.get(voice_recv.ExtensionID.audio_power)
    value = int.from_bytes(ext_data, 'big')
    power = 127-(value & 127)
    print('#' * int(power * (79/128)))


vc.listen(voice_recv.BasicSink(base_callback))

Name: discord-ext-voice_recv
Version: 0.4.2a155
Name: discord.py
Version: 2.4.0a4987+gbd402b48

@AI-Maria
Copy link
Author

Bot don't stop working. Reconnecting fix it ($stop, $con), but issue repeats.

@imayhaveborkedit
Copy link
Owner

I've figured out what this is now. I'll have a fix for it in due time.

@AlexTMjugador
Copy link

AlexTMjugador commented Oct 6, 2024

Hello @imayhaveborkedit, can you share your thoughts about the root cause for this issue? It hast just happened to me and could try giving the fix a shot on a PR if it's not too complicated/I have enough time.

@AhmedERady
Copy link

Any updates on this?

@AhmedERady
Copy link

It starts working again when the user disconnects & reconnects to the voice channel. @AI-Maria can you also confirm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants