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

Is there any way to prevent the bot from auto disconnecting #33

Closed
Paillat-dev opened this issue Jan 22, 2023 · 4 comments
Closed

Is there any way to prevent the bot from auto disconnecting #33

Paillat-dev opened this issue Jan 22, 2023 · 4 comments

Comments

@Paillat-dev
Copy link
Contributor

Is there a way to prevent the bot from disconnecting if there's nobody in the channel, in order to have a 24/7 bot with loop?

@RafaelSolVargas
Copy link
Owner

Yes, that's not too hard.
Just a new flag in config.py and a if in a specific function should be enough, but I have some doubts.
You would like to have the bot playing the song until the reaches the end of the playlist and only then he disconnects OR you want him to still in the voice channel 24/7, no matter if it's playing or not?
Depending on what you want, I could add this feature in 1 day.

@Paillat-dev
Copy link
Contributor Author

Paillat-dev commented Jan 23, 2023 via email

@Paillat-dev Paillat-dev changed the title Is there any way to prevent the bpt from auto disconnecting Is there any way to prevent the bot from auto disconnecting Jan 23, 2023
@RafaelSolVargas
Copy link
Owner

Done!
You can see the changes in the code in this commit.
As it's in the Readme.md, you must change a line of code to have your feature working:

Change the property SHOULD_AUTO_DISCONNECT_WHEN_ALONE of the VConfigs class to False
The path to the file is ./Config/Configs.py

If you have any question, don't mind asking.

@Paillat-dev
Copy link
Contributor Author

Thank you very much! Great work!

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