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 sleekxmpp
import telegram import telegram
import logging
import configparser import configparser
from threading import Thread from threading import Thread
from queue import Queue from queue import Queue
from telegram.error import NetworkError, Unauthorized from telegram.error import NetworkError, Unauthorized
from time import sleep from time import sleep
from sys import argv from sys import argv
from sys import exit
class EchoBot(sleekxmpp.ClientXMPP): class EchoBot(sleekxmpp.ClientXMPP):
@@ -31,12 +31,8 @@ class EchoBot(sleekxmpp.ClientXMPP):
t.daemon = True t.daemon = True
t.start() t.start()
# activar logueo basico print('Please wait a couple of minutes until it\'s correctly '
logging.basicConfig( 'connected')
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO)
logger = logging.getLogger(__name__)
def read_tg(self): def read_tg(self):
update_id = 0 update_id = 0

View File

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