From ad208cf44afe8f8ff8d5fe46860f9cf9ef6b9cfa Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 4 Mar 2016 14:38:32 +0100 Subject: [PATCH] Rimosso /restart --- bot.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bot.py b/bot.py index c2d785b7..57c30972 100644 --- a/bot.py +++ b/bot.py @@ -6,7 +6,6 @@ import steam import random import osu import hearthstone -import sys import lol import string @@ -559,16 +558,6 @@ while True: # Manda l'audio So much to do, so much to see print("@" + username + ": /shrekt ") telegram.senddocument("BQADBAADsQADiBjiAqYN-EBXASyhAg", sentin) - elif text.startswith('/restart'): - # Riavvia il bot - if username == "Steffo": - print("@" + username + ": /restart ") - telegram.sendmessage("Riavvio accettato.", sentin, source) - sys.exit(0) - else: - telegram.sendmessage( - chr(9888) + " Non hai i permessi necessari per creare una nuova votazione.", - sentin, source) elif text.startswith('/nuovavotazione'): if username == "Steffo": print("@" + username + ": /nuovavotazione ")