def __init__(self): super(MessageListener, self).__init__() self.xmppListener = XMPPMessageListener(self) self.xmpp = XmppBot(self.jid, self.password, self.xmppListener) self.xmpp.process() if self.xmpp.connect(): self.logger.info("Done") else: self.logger.info("Unable to connect.") return
def __init__(self): super(CrossOverMonitor, self).__init__() self.xmppListener = XMPPMessageListener(self) self.xmpp = XmppBot(self.jid, self.password, self.xmppListener) if self.xmpp.connect(): self.xmpp.process(block=False) print("Done") else: print("Unable to connect.") return