Take out logging. Also, add a exit option

This commit is contained in:
drymer 2016-05-08 23:59:47 +02:00
parent 32c308958f
commit e7c1efefe2
2 changed files with 8 additions and 8 deletions

View File

@ -10,6 +10,7 @@ from queue import Queue
from telegram.error import NetworkError, Unauthorized
from time import sleep
from sys import argv
from sys import exit
class EchoBot(sleekxmpp.ClientXMPP):
@ -30,13 +31,12 @@ class EchoBot(sleekxmpp.ClientXMPP):
t = Thread(target=self.read_tg)
t.daemon = True
t.start()
# activar logueo basico
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO)
logger = logging.getLogger(__name__)
print('Please wait a couple of minutes until it\'s correctly connected'
' to telegram.')
while True:
out = input('Enter "quit" if you want to stop the program.\n')
if out == 'quit':
exit()
def read_tg(self):
update_id = 0

View File

@ -2,7 +2,7 @@
from setuptools import setup
VERSION = '0.1.2'
VERSION = '0.1.3'
setup(name='jabbergram',
version=VERSION,