From 0a3656af08a77a3f80de7ec9c50208cb8245d635 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 28 Feb 2016 15:00:58 +0100 Subject: [PATCH] crash intenzionale best crash --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index 984bb2cb..de145527 100644 --- a/bot.py +++ b/bot.py @@ -714,6 +714,10 @@ while True: lolfreestring += "*" + staticdata['name'] + "* " + staticdata['title'] + '\n' print("Completato.") telegram.sendmessage(lolfreestring, sentin, source) + elif text.startswith('/crash'): + # Crasha il bot. Mi sembra geniale. + if username == 'Steffo': + raise SystemExit("Ho appena fatto crashare tutto apposta. Sono un genio.") else: print("@" + username + " bloccato.") except Exception: