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:
parent
b61f369e28
commit
1eecd77284
1 changed files with 10 additions and 0 deletions
10
bot.py
10
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
|
||||
|
|
Loading…
Reference in a new issue