1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

#6: Visualizza le persone nei canali di secondo livello

This commit is contained in:
Steffo 2016-02-14 16:29:18 +01:00
parent b61f369e28
commit 1eecd77284

10
bot.py
View file

@ -621,6 +621,16 @@ while True:
else:
tosend += chr(128266) + " "
tosend += u['name'] + "\n"
for ch in r['root']['channels']:
for u in ch['users']:
if not u['mute']:
if u['selfDeaf']:
tosend += chr(128263) + " "
elif u['selfMute']:
tosend += chr(128264) + " "
else:
tosend += chr(128266) + " "
tosend += u['name'] + " | " + ch['name'] + "\n"
telegram.sendmessage(tosend, sentin, source)
elif text.startswith('/diario'):
# Aggiungi una riga al diario Royal Games