diff --git a/v6d3music/app.py b/v6d3music/app.py index ba9ed5a..b704ebd 100644 --- a/v6d3music/app.py +++ b/v6d3music/app.py @@ -10,7 +10,7 @@ from v6d0auth import certs def define_routes(routes: web.RouteTableDef, client: discord.Client): @routes.get('/') async def home(_request: web.Request): - return web.Response(body='v6d3losyash\n') + return web.Response(body='v6d3music\n') @routes.post('/stop') async def stop(request: web.Request): diff --git a/v6d3music/run-bot.py b/v6d3music/run-bot.py index 33221d7..9938902 100644 --- a/v6d3music/run-bot.py +++ b/v6d3music/run-bot.py @@ -288,12 +288,12 @@ class QueueAudio(discord.AudioSource): return stream.getvalue() def cleanup(self): + self.queue.clear() for audio in self.queue: try: audio.cleanup() except ValueError: pass - self.queue.clear() class MainAudio(discord.PCMVolumeTransformer): @@ -482,7 +482,7 @@ async def main_for_raw_vc(vc: discord.VoiceClient, *, create: bool) -> MainAudio ) else: raise Explicit("not playing") - if vc.source != source: + if vc.source != source or not vc.is_playing(): vc.play(source) return source