Beispiel #1
0
def main() :
	component = SimpleComponent(
		jid = "im.partych.at", password = "******",
		server = "127.0.0.1", port = 5275, backend = None)
	component.start()
	httpFrontend = HTTPFrontend(8080, None)
	httpFrontend.start()
def main() :
	backend = SimpleBackend()
	component = SimpleComponent(
		jid = "posts.cheshir.lit", password = "******",
		server = "cheshir.lit", port = 5347, backend = backend)
	component.start()
	httpFrontend = HTTPFrontend(8080, backend)
	httpFrontend.start()
Beispiel #3
0
def main():
    backend = SimpleBackend()
    component = Component(jid="test@gic",
                          password="******",
                          server="147.102.6.34",
                          port=5222,
                          backend=backend)
    component.start()
    httpFrontend = HTTPFrontend(8081, backend)
    httpFrontend.start()
def main():
    backend = SimpleBackend()
    backend.jidToUser = {}
    backend.userToJID = {}
    component = RegistrableComponent(jid="test@gic",
                                     password="******",
                                     server="147.102.6.34",
                                     port=5222,
                                     backend=backend)
    component.start()
    httpFrontend = HTTPFrontend(8080, backend)
    httpFrontend.start()
def main() :
	backend = SimpleBackend()
	bot = ConfigurableBot("test@gic", "test", backend, server="147.102.6.34")
	bot.start()
	httpFrontend = HTTPFrontend(8080, backend)
	httpFrontend.start()