1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

Formattazione in /cv

This commit is contained in:
Steffo 2016-02-14 16:31:29 +01:00
parent e108f47e90
commit 40f012dd9d

4
bot.py
View file

@ -611,7 +611,7 @@ while True:
# Informa Telegram che il messaggio è stato ricevuto.
telegram.sendchataction(sentin)
r = mumbleboxes.getserverstatus("https://www.mumbleboxes.com/servers/5454/cvp.json").json()
tosend = "Utenti online:\n"
tosend = "*Utenti online:*\n"
for u in r['root']['users']:
if not u['mute']:
if u['selfDeaf']:
@ -630,7 +630,7 @@ while True:
tosend += chr(128264) + " "
else:
tosend += chr(128266) + " "
tosend += u['name'] + " | " + ch['name'] + "\n"
tosend += u['name'] + " | _" + ch['name'] + "_\n"
telegram.sendmessage(tosend, sentin, source)
elif text.startswith('/diario'):
# Aggiungi una riga al diario Royal Games