2 Commits

Author SHA1 Message Date
drymer
9a06e8ac68 Take out the stupid option of getting out of the program
Since sleekxmpp needs to run as a loop, that was cutting it. Idiot.
2016-05-09 20:56:22 +02:00
drymer
e7c1efefe2 Take out logging. Also, add a exit option 2016-05-09 00:00:16 +02:00
2 changed files with 4 additions and 8 deletions

10
jabbergram.py Normal file → Executable file
View File

@@ -3,13 +3,13 @@
import sleekxmpp
import telegram
import logging
import configparser
from threading import Thread
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):
@@ -31,12 +31,8 @@ class EchoBot(sleekxmpp.ClientXMPP):
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')
def read_tg(self):
update_id = 0

View File

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