Exemple #1
0
 def __init__(self, server='include.io', id='Carteiro'):
     self.client = xmpp.Client(
         config.get('xmpp', 'server'),
         debug=config.getboolean('xmpp', 'debug')
     )
     self.connect()
     self.id = config.get('xmpp', 'id')
     self.setPresence(self.id)
     self.setStatus('Notification service online!')
Exemple #2
0
def main():
    if config.getboolean('api', 'standalone'):
        host = config.get('api', 'host')
        port = config.getint('api', 'port')
        app.run(host=host, port=port)