From 59a3ca22ea02abab6b41ffe5d6d0e406fc77f88e Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 27 Feb 2022 17:11:59 -0500 Subject: [PATCH] Debug output for leaving --- bot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bot.py b/bot.py index 2f2509e..9cd68d1 100644 --- a/bot.py +++ b/bot.py @@ -119,16 +119,22 @@ class Bot(commands.Bot): async def leave(ctx, member: discord.Member = None): member = member or ctx.author.display_name if self.Bot_Connected: + print("Cleaning up") # Stop the sound handlers self.streamHandler.clean_up() + print("Disconnecting") # Disconnect the client from the voice channel await ctx.voice_client.disconnect() + print("Changing presence") # Change the presence to away and '@ me' await self.set_activity(False) # Stop the SDR so it can cool off + print("Stopping SDR") self.stop_sdr() + print("Unlocking the bot") # 'Unlock' the bot self.Bot_Connected = False + print("Sending Goodbye") await ctx.send(f"Goodbye {str(member).capitalize()}.") else: await ctx.send(f"{str(member).capitalize()}, I'm not in a channel")