From 0a800edf17f3bc75b039bdd050b98bc0a0bfcbd1 Mon Sep 17 00:00:00 2001 From: whitney Date: Wed, 12 Jun 2024 11:19:57 -0700 Subject: [PATCH] Old logging changes when moving a user. --- pwsBot/voice/voice_event_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwsBot/voice/voice_event_handler.py b/pwsBot/voice/voice_event_handler.py index 8820ff8..969fa9d 100644 --- a/pwsBot/voice/voice_event_handler.py +++ b/pwsBot/voice/voice_event_handler.py @@ -23,9 +23,9 @@ async def handle_voice_event(member, before, after): provisioned_channels.append(new_channel_name) logging.info('Created and tracked new voice channel: ' + str(new_channel_name)) logging.debug('Tracked channels: ' + str(provisioned_channels)) - + logging.info('Moving user ' + str(member.name) + ' from channel ' + str(after.channel.name) + ' to channel ' + str(new_channel.name) + '.') + await(member.move_to(new_channel)) - logging.info('Moved user ' + str(member.name) + ' from channel ' + str(after.channel.name) + ' to channel ' + str(new_channel.name) + '.') elif before.channel and not before.channel.members and before.channel.name in provisioned_channels: # User was the last one to leave a tracked channel. logging.info('User ' + str(member.name) + ' was the last to leave tracked channel ' + str(before.channel.name) + '.')