From 93ec9ca2ec926c3f49b0e947082a2d93323d0719 Mon Sep 17 00:00:00 2001 From: Lukas Blacha Date: Tue, 7 Feb 2023 22:08:20 +0100 Subject: [PATCH] Switched to OpusVoice --- Music-Bot.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Music-Bot.py b/Music-Bot.py index c48f0db..dddc014 100644 --- a/Music-Bot.py +++ b/Music-Bot.py @@ -196,6 +196,13 @@ else: elif ctx.voice_client.is_playing(): ctx.voice_client.stop() + try: + bot.loop.run_until_complete(bot.start(token=args.token, reconnect=True)) + except KeyboardInterrupt: + bot.loop.run_until_complete(bot.close()) + finally: + bot.loop.close() + """ @bot.event async def on_application_command_error(ctx, error): @@ -222,9 +229,4 @@ else: await ctx.send(embed=embed) """ - try: - bot.loop.run_until_complete(bot.start(token=args.token, reconnect=True)) - except KeyboardInterrupt: - bot.loop.run_until_complete(bot.close()) - finally: - bot.loop.close() +