show join/quits
This commit is contained in:
parent
3168c77ba7
commit
40df1726da
2 changed files with 6 additions and 2 deletions
|
@ -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`
|
||||||
|
|
6
main.py
6
main.py
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue