print member_msg to debug channel
This commit is contained in:
parent
cf4585e647
commit
fc3b530ff5
1 changed files with 5 additions and 2 deletions
7
main.py
7
main.py
|
@ -107,14 +107,17 @@ async def on_voice_state_update(member, before, after):
|
||||||
prev_chan = str(before.channel.id)
|
prev_chan = str(before.channel.id)
|
||||||
if prev_chan == str(voice_channel_id):
|
if prev_chan == str(voice_channel_id):
|
||||||
member_msg = str(member.nick) + ' is in the void :eight_pointed_black_star:'
|
member_msg = str(member.nick) + ' is in the void :eight_pointed_black_star:'
|
||||||
|
print('[INFO] ' + member_msg)
|
||||||
|
await debug_channel.send(member_msg)
|
||||||
|
|
||||||
if after.channel is None:
|
if after.channel is None:
|
||||||
next_chan = "not_found"
|
next_chan = "not_found"
|
||||||
else:
|
else:
|
||||||
next_chan = str(after.channel.id)
|
next_chan = str(after.channel.id)
|
||||||
if next_chan == str(voice_channel_id):
|
if next_chan == str(voice_channel_id):
|
||||||
member_msg = str(member.nick) + ' enjoys! :star:'
|
member_msg = str(member.nick) + ' enjoys! :star:'
|
||||||
print('[INFO] ' + member_msg)
|
print('[INFO] ' + member_msg)
|
||||||
#await debug_channel.send(member_msd)
|
await debug_channel.send(member_msg)
|
||||||
|
|
||||||
if member_ids > 0 and isConnected == False:
|
if member_ids > 0 and isConnected == False:
|
||||||
isConnected = True
|
isConnected = True
|
||||||
|
|
Loading…
Reference in a new issue