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 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
|
||||
|
||||
Reference in New Issue
Block a user