From 1eecd772849b5825e20adea6e000b512f639f561 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 14 Feb 2016 16:29:18 +0100 Subject: [PATCH] #6: Visualizza le persone nei canali di secondo livello --- bot.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bot.py b/bot.py index 3328b99f..f27f1c82 100644 --- a/bot.py +++ b/bot.py @@ -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