コード例 #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()
コード例 #2
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()
コード例 #3
0
def main() :
	backend = SimpleBackend()
	component = Component(
		jid = "posts.cheshir.lit", password = "******",
		server = "cheshir.lit", port = 5347, backend = backend)
	component.start()
	httpFrontend = HTTPFrontend(8080, backend)
	httpFrontend.start()
コード例 #4
0
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()
コード例 #5
0
def main() :
	backend = SimpleBackend()
	backend.jidToUser = {}
	backend.userToJID = {}
	component = RegistrableComponent(
		jid = "publishsubscribe@facebooknode", password = "******",
		server = "147.102.6.34", port = 5060, backend = backend)
	component.start()
	httpFrontend = HTTPFrontend(8080, backend)
	httpFrontend.start()
コード例 #6
0
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()
コード例 #7
0
def main() :
	backend = SimpleBackend()
	backend.jidToUser = {}
	backend.userToJID = {}
	component = RegistrableComponent(
		jid = "posts.cheshir.lit", password = "******",
		server = "cheshir.lit", port = 5347, backend = backend)
	component.start()
	httpFrontend = HTTPFrontend(8080, backend)
	httpFrontend.start()
コード例 #8
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()
コード例 #9
0
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()
コード例 #10
0
def main() :
	backend = SimpleBackend()
	bot = ConfigurableBot("test@gic", "test", backend, server="147.102.6.34")
	bot.start()
	httpFrontend = HTTPFrontend(8080, backend)
	httpFrontend.start()
コード例 #11
0
ファイル: main.py プロジェクト: guffyWave/partychapp
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()
コード例 #12
0
def main() :
	backend = SimpleBackend()
	bot = Bot("mpetyx@gic", "emp", backend, "147.102.6.34")
	bot.start()
	httpFrontend = HTTPFrontend(8080, backend)
	httpFrontend.start()
コード例 #13
0
ファイル: CheshiR-Bot.py プロジェクト: GunioRobot/xmpp-tdg
def main() :
	backend = SimpleBackend()
	bot = Bot("*****@*****.**", "mypass", backend, "http://cheshir.lit")
	bot.start()
	httpFrontend = HTTPFrontend(8080, backend)
	httpFrontend.start()