From 9a06e8ac68d108dea4844173e2a2cfcad9cd6280 Mon Sep 17 00:00:00 2001 From: drymer Date: Mon, 9 May 2016 20:50:00 +0200 Subject: [PATCH] Take out the stupid option of getting out of the program Since sleekxmpp needs to run as a loop, that was cutting it. Idiot. --- jabbergram.py | 10 +++------- setup.py | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) mode change 100644 => 100755 jabbergram.py diff --git a/jabbergram.py b/jabbergram.py old mode 100644 new mode 100755 index 6bc1e96..cb88a76 --- a/jabbergram.py +++ b/jabbergram.py @@ -3,7 +3,6 @@ import sleekxmpp import telegram -import logging import configparser from threading import Thread from queue import Queue @@ -31,12 +30,9 @@ class EchoBot(sleekxmpp.ClientXMPP): t = Thread(target=self.read_tg) t.daemon = True t.start() - 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() + + print('Please wait a couple of minutes until it\'s correctly ' + 'connected') def read_tg(self): update_id = 0 diff --git a/setup.py b/setup.py index 3b92cdb..6a4fdfa 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup -VERSION = '0.1.3' +VERSION = '0.1.4' setup(name='jabbergram', version=VERSION,