diff --git a/v6d3music/core/queueaudio.py b/v6d3music/core/queueaudio.py index 4c1d259..8e6a4f4 100644 --- a/v6d3music/core/queueaudio.py +++ b/v6d3music/core/queueaudio.py @@ -124,7 +124,6 @@ class QueueAudio(discord.AudioSource): return stream.getvalue() def cleanup(self): - self.queue.clear() for audio in self.queue: try: audio.cleanup() diff --git a/v6d3music/core/real_url.py b/v6d3music/core/real_url.py index b3122b4..713fc4b 100644 --- a/v6d3music/core/real_url.py +++ b/v6d3music/core/real_url.py @@ -12,6 +12,8 @@ from v6d3music.utils.tor_prefix import tor_prefix adaas_available = bool(os.getenv('adaasurl')) +if adaas_available: + print('running real_url through adaas') async def real_url(url: str, override: bool, tor: bool) -> str: diff --git a/v6d3music/run-bot.py b/v6d3music/run-bot.py index a2f5b7b..3ecf7b2 100644 --- a/v6d3music/run-bot.py +++ b/v6d3music/run-bot.py @@ -28,11 +28,12 @@ register_commands() class MusicClient(discord.Client): async def close(self) -> None: save_task.cancel() + await super().close() try: await save_all(False, False) + print('saved') except Exception: traceback.print_exc() - await super().close() client = MusicClient( intents=discord.Intents(