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!')
def main(): if config.getboolean('api', 'standalone'): host = config.get('api', 'host') port = config.getint('api', 'port') app.run(host=host, port=port)