added logging

This commit is contained in:
bacon
2024-03-08 10:52:45 +03:00
parent fc18ade975
commit 7ad57f9fe8
7 changed files with 18 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ class Audio(commands.Cog, name='Audio'):
before: VoiceState,
after: VoiceState):
if before.channel is None and not member.bot:
logger.info(f'Coneccted {member.name} to {member.voice}')
logger.info(f'Coneccted {member.name} to {after.channel.name}')
if any('Escape from Tarkov' in str(user.activity) for user in after.channel.members):
logger.info('Skip playing by Game')
else: