send welcome message on join
This commit is contained in:
parent
8e1e5c1aa5
commit
3168c77ba7
1 changed files with 5 additions and 1 deletions
6
main.py
6
main.py
|
@ -102,7 +102,11 @@ async def on_voice_state_update(member, before, after):
|
||||||
|
|
||||||
member_ids = len(voice_channel.voice_states.keys())
|
member_ids = len(voice_channel.voice_states.keys())
|
||||||
|
|
||||||
#await debug_channel.send('] voice #' + voice_channel_id + ' member count: ' + str(member_ids))
|
try:
|
||||||
|
if str(after.channel.id) == str(voice_channel_id):
|
||||||
|
await debug_channel.send(str(member.nick) + ' enjoys! :eight_pointed_black_star:')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if member_ids > 0 and isConnected == False:
|
if member_ids > 0 and isConnected == False:
|
||||||
isConnected = True
|
isConnected = True
|
||||||
|
|
Loading…
Reference in a new issue