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

Aggiunto comando /getrygimage per scaricare la propria immagine di profilo.

This commit is contained in:
Steffo 2016-09-21 17:03:22 +02:00
parent 0e56ac4335
commit a6f52bd38e

9
bot.py
View file

@ -456,6 +456,13 @@ def lolfree():
telegram.sendmessage(lolfreestring, sentin, source) telegram.sendmessage(lolfreestring, sentin, source)
def getrygimage():
# Ricevi il link alla tua immagine del profilo Royal Games.
print("@" + username + ": getrygimage")
telegram.sendmessage("[Scarica](https://dl.dropboxusercontent.com/u/23313381/Logo/Personali/{tag}.png)"
" la tua immagine del profilo Royal Games!".format(tag=royalgames[username.lower()]['icon']),
sentin, source)
# Ciclo principale del bot # Ciclo principale del bot
print("Bot avviato!") print("Bot avviato!")
while True: while True:
@ -531,6 +538,8 @@ while True:
lolfree() lolfree()
elif text.startswith('/ombromanto'): elif text.startswith('/ombromanto'):
ombromanto() ombromanto()
elif text.startswith('/getrygimage'):
getrygimage()
else: else:
print("@" + username + " bloccato.") print("@" + username + " bloccato.")
except Exception as e: except Exception as e: