show user connecting on the visible voice channels
This commit is contained in:
parent
2feffba344
commit
31a72b727e
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -56,8 +56,8 @@ async def on_message(message):
|
|||
|
||||
@bot.event
|
||||
async def on_voice_state_update(member, before, after):
|
||||
print("User connected to " + str(after.channel.id))
|
||||
if after.channel.id == [voice_channel_id]:
|
||||
print("User noticed on " + str(after.channel.id))
|
||||
if str(after.channel.id) == voice_channel_id:
|
||||
clients_before = len(before.channel.members)
|
||||
|
||||
# If nobody in the channel based on before, invoke join the channel
|
||||
|
|
Loading…
Reference in a new issue