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

[SFX] Bot not auto disconnecting after playing SFX #19

Open
Cazed opened this issue Jun 9, 2020 · 3 comments
Open

[SFX] Bot not auto disconnecting after playing SFX #19

Cazed opened this issue Jun 9, 2020 · 3 comments

Comments

@Cazed
Copy link

Cazed commented Jun 9, 2020

Hi,

The bot is not leaving after it plays the SFX. I have tried to use the built in audio cog auto disconnect but it cuts the SFX off too early, even when I up the padding.

Is this a bug or something that is not implemented? If so, is there an easy way I can implement it myself? (not very clued up on python).

Thanks in advance!

@baiumbg
Copy link
Owner

baiumbg commented Jun 9, 2020

Hi @Cazed,

Auto-disconnecting should be handled by the audio cog.
I tried reproducing this issue, but it doesn't seem to happen for me.
I tested with [p]audioset dc on and it seems to be working correctly.

By cuts the SFX off, do you mean it disconnects too early?
And does your bot stutter now and again?
I.e. does the green circle around its avatar disappear while playing from time to time?
Could be a connectivity issue between your bot and the Discord servers.

@Cazed
Copy link
Author

Cazed commented Jun 9, 2020 via email

@baiumbg
Copy link
Owner

baiumbg commented Jun 9, 2020

This is very weird.

My best bet is that it is an issue with Red/Lavalink.
I had a pretty rough experience while developing this cog. I used to get random cut offs near the end and the audio would start to play .5-1 seconds after the beginning of the audio file. That's the reason I introduced padding. If increasing the padding didn't help, then I seriously doubt it's an issue with the cog.

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

2 participants