From 66b733a94c5b5dc34bef9d04b46c6f3e6a50587c Mon Sep 17 00:00:00 2001 From: Elnath Date: Sat, 23 Jan 2021 17:41:15 +0100 Subject: [PATCH] Added some debug logging to handle_user_connected_to_voice --- VocalMaisBot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VocalMaisBot.py b/VocalMaisBot.py index a9f1947..9abe309 100755 --- a/VocalMaisBot.py +++ b/VocalMaisBot.py @@ -233,6 +233,7 @@ class VocalMaisBot(commands.Cog): return # It's not one of our special watched join-to-create channels # The user is not a bot and connected to one of our special watched channels + logger.debug(f"[{channel.guild.name}({channel.guild.id})] User {user.name}#{user.discriminator}({user.id}) connected to watched channel {channel.name}({channel.id})") # We create a channel for them and move them into it category = channel.category # Creating the permissions of the channel @@ -248,6 +249,7 @@ class VocalMaisBot(commands.Cog): channel_name = discord_utils.voice_channel_safe_name(user_default_channel_name, user_name_replacement = user.display_name) # Creating the channel and moving the user into it + logger.debug(f"[{channel.guild.name}({channel.guild.id})] Creating channel {channel_name} for {user.name}#{user.discriminator}({user.id})") user_channel = await category.create_voice_channel(channel_name, overwrites = channel_permissions) await user.move_to(user_channel) logger.info(f"[{channel.guild.name}({channel.guild.id})] Created channel {user_channel.name}({user_channel.id}) for {user.name}#{user.discriminator}({user.id})")