From 4e265ce655a49960625dfd35a2def8937826c797 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 1 Feb 2016 17:32:42 +0100 Subject: [PATCH] printme --- bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.py b/bot.py index f24b10f4..9c482de0 100644 --- a/bot.py +++ b/bot.py @@ -640,11 +640,14 @@ while True: tosend += u['name'] + "\n" telegram.sendmessage(tosend, sentin, source) elif text.startswith('/diario'): + print("@" + username + ": /diario ") cmd = text.split(" ", 1) d = filemanager.readfile("diario.txt") d += str(time.time()) + " | " + cmd[1] + "\n" filemanager.writefile("diario.txt", d) telegram.sendmessage("Aggiunto al diario RYG.", sentin, source) + else: + print("@" + username + " bloccato.")