Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a06e8ac68 | ||
|
|
e7c1efefe2 |
10
jabbergram.py
Normal file → Executable file
10
jabbergram.py
Normal file → Executable 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
|
||||||
|
|||||||
Reference in New Issue
Block a user