Resolving issue 33

This commit is contained in:
Rafael Vargas
2023-01-23 10:35:52 -03:00
parent a72c4c7d8d
commit 7310eda1a1
3 changed files with 15 additions and 1 deletions

View File

@@ -297,6 +297,9 @@ class PlayerProcess(Process):
if self.__guild.voice_client is None:
return
if not VConfigs().SHOULD_AUTO_DISCONNECT_WHEN_ALONE:
return
if self.__guild.voice_client.is_playing() or self.__guild.voice_client.is_paused():
if not self.__isBotAloneInChannel(): # If bot is not alone continue to play
self.__timer = TimeoutClock(self.__timeoutHandler, self.__loop)