From 3aad317a662e2239f2095c5bed12863157fc1bfa Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 7 Aug 2015 17:58:53 +0200 Subject: [PATCH] Cosa per rendere contento doc --- royalbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalbot.py b/royalbot.py index 6e3fac15..e72094ca 100644 --- a/royalbot.py +++ b/royalbot.py @@ -73,7 +73,7 @@ while(True): writeFile("lastid.txt", str(data['result'][0]['update_id'] + 1)) #Leggi i dati del messaggio msg = data['result'][0]['message'] - if(msg['text'] == "/ahnonlosoio"): + if(msg['text'].startswith("/ahnonlosoio")): sendMessage("Ah non lo so nemmeno io ¯\_(ツ)_/¯", msg['chat']['id']) if(msg['text'].startswith("/steam")): if(msg['text'] == "/steam"):