From a6f52bd38e505e4c2ce75497fa37a98842dbb1ee Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 21 Sep 2016 17:03:22 +0200 Subject: [PATCH] Aggiunto comando /getrygimage per scaricare la propria immagine di profilo. --- bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bot.py b/bot.py index f60fdbdf..aa1bb93f 100644 --- a/bot.py +++ b/bot.py @@ -456,6 +456,13 @@ def lolfree(): 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 print("Bot avviato!") while True: @@ -531,6 +538,8 @@ while True: lolfree() elif text.startswith('/ombromanto'): ombromanto() + elif text.startswith('/getrygimage'): + getrygimage() else: print("@" + username + " bloccato.") except Exception as e: