show join/quits

This commit is contained in:
deflax 2022-03-28 11:46:45 -04:00
parent 3168c77ba7
commit 40df1726da
2 changed files with 6 additions and 2 deletions

View file

@ -13,4 +13,4 @@
2. `cp .env.dist .env` 2. `cp .env.dist .env`
3. `vim .env` 3. `vim .env`
4. `docker-compose up -d --build --remove-orphans` 4. `docker-compose up -d --build --remove-orphans`
5. `docker-compose logs --follow --tail 100` 5. `docker-compose logs --follow --tail 100 --timestamps`

View file

@ -103,8 +103,12 @@ 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())
try: try:
if str(before.channel.id) == str(voice_channel_id):
member_msg = str(member.nick) + ' is in the void :eight_pointed_black_star:'
if str(after.channel.id) == str(voice_channel_id): if str(after.channel.id) == str(voice_channel_id):
await debug_channel.send(str(member.nick) + ' enjoys! :eight_pointed_black_star:') member_msg = str(member.nick) + ' enjoys! :star:'
print('[INFO] ' + member_msg)
#await debug_channel.send(member_msd)
except: except:
pass pass