SudhanPlayz / Discord-MusicBot

An advanced discord music bot, supports Spotify, Soundcloud, YouTube with Shuffling, Volume Control and Web Dashboard with Slash Commands support!
https://musicbot.darrenofficial.com
Other
2.96k stars 2.88k forks source link

Bot can auto leave after a given time #1203

Closed Blis204 closed 1 year ago

Blis204 commented 1 year ago

Please describe the changes this PR makes and why it should be merged:

Added the ability to automatically let the bot leave the voice channel, after being alone for more than a given time. The time can be changed in the bot config, or the module can be comlpetely disabled.

Status and versioning classification:

Discord_kKNMrMb0B2

Blis204 commented 1 year ago

The default setting of auto leave is in the v5 version, on 30 seconds too

C-EO commented 1 year ago

The default setting of auto leave is in the v5 version, on 30 seconds too

@nikdraws I think making it 10 or 30 minutes will be okay too.

C-EO commented 1 year ago

I have no problem with it, just that the timing is unreal. What if I left the bot to get a cup of tea for two minutes and I expect it to still be connected to the VC?

Assassin654 commented 1 year ago

The default setting of auto leave is in the v5 version, on 30 seconds too

There is no default setting for the v5

In v5 it will leave the instant everyone is gone unless you configure it with 24/7, in which case you can configure the leave time.

Blis204 commented 1 year ago

I have no problem with it, just that the timing is unreal. What if I left the bot to get a cup of tea for two minutes and I expect it to still be connected to the VC?

I added the ability to choose your own time, before disconnecting

C-EO commented 1 year ago

@Blis204 Now you're talking. Thanks for making the change

Antoohh commented 1 year ago

there is one problem, whenever the bot is left alone in the channel, just someone connects the bot will play the music again but after the indicated time it will disconnect anyway.

C-EO commented 1 year ago

@Antoohh The problem is at your end then. @Blis204 covered your issue in the code as he committed it.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.