print member_msg to debug channel

This commit is contained in:
deflax 2022-03-28 12:12:38 -04:00
parent cf4585e647
commit fc3b530ff5

View file

@ -107,6 +107,9 @@ 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:
@ -114,7 +117,7 @@ async def on_voice_state_update(member, before, after):
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