From ed74254d83d77a0821fd135865ee8c1ad7704c33 Mon Sep 17 00:00:00 2001 From: Joshua Arulsamy Date: Tue, 4 Aug 2020 18:17:22 -0600 Subject: [PATCH] :bug: Fix broken await for queuing --- PlexBot/bot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PlexBot/bot.py b/PlexBot/bot.py index fa8fb95..5301912 100644 --- a/PlexBot/bot.py +++ b/PlexBot/bot.py @@ -72,6 +72,10 @@ class Plex(commands.Cog): track_url = self.current_track.getStreamURL() audio_stream = FFmpegPCMAudio(track_url) + + while self.vc.is_playing(): + asyncio.sleep(10) + self.vc.play(audio_stream, after=self._toggle_next) logger.debug(f"Playing {self.current_track.title}") @@ -159,7 +163,7 @@ class Plex(commands.Cog): self.vc.stop() await self.vc.disconnect() self.vc = None - await ctx.send(":stop: Stopped") + await ctx.send(":stop_button: Stopped") @command() async def pause(self, ctx):