from twisted.application import service from twisted.words.protocols.jabber import jid from wokkel.client import XMPPClient from client import MUCLastBot application = service.Application("lastbot") xmppclient = XMPPClient(jid.internJID("test@thetofu.com/lastbot"), "test") xmppclient.logTraffic = True mucbot = MUCLastBot('chat.speeqe.com','last', 'LastBot') mucbot.setHandlerParent(xmppclient) xmppclient.setServiceParent(application)