BUG Would try to join when the bot was disconnected

This commit is contained in:
Logan Cusano
2022-03-31 18:23:45 -04:00
parent 6170719233
commit d3a18c2421

View File

@@ -133,9 +133,10 @@ class NoiseGate(AudioStream):
def core(self, error=None):
if error:
LOGGER.warning(error)
if not voice_connection.is_playing():
LOGGER.debug(f"Playing stream to discord")
voice_connection.play(self.NGStream, after=self.core)
if voice_connection.is_connected():
if not voice_connection.is_playing():
LOGGER.debug(f"Playing stream to discord")
voice_connection.play(self.NGStream, after=self.core)
async def close(self):
LOGGER.debug(f"Closing")