baiumbg / baiumbg-Cogs

A bunch of useless (and some questionably useful) cogs for Red-DiscordBot (V3)
MIT License
3 stars 10 forks source link

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

Open Cazed opened 4 years ago

Cazed commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Hi,

Yes that is what I mean. It does that sometimes but not very often at all. Short SFXs are fine but anymore more than 5 seconds gets cut off by around .5 seconds

On Tue, 9 Jun 2020, 18:18 Veselin Dobrev, notifications@github.com wrote:

Hi @Cazed https://github.com/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?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/baiumbg/baiumbg-Cogs/issues/19#issuecomment-641457724, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFT4T5PNVVHP236WBGKJF53RVZVFZANCNFSM4NZTAMJQ .

baiumbg commented 4 years ago

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.