2008-12-04 12:23:29 -08:00
|
|
|
# -*- mode: python -*-
|
|
|
|
|
|
|
|
from twisted.application import service
|
2008-12-04 12:55:20 -08:00
|
|
|
from twisted.words.protocols.jabber import jid
|
|
|
|
from wokkel.client import XMPPClient
|
|
|
|
|
|
|
|
from commitbot import CommitBot
|
|
|
|
|
|
|
|
application = service.Application('commitbot')
|
|
|
|
|
|
|
|
client = XMPPClient(jid.internJID('user@host'), 'password')
|
|
|
|
client.logTraffic = False
|
|
|
|
|
|
|
|
bot = CommitBot('room@chat.example.com', 'commits')
|
|
|
|
bot.setHandlerParent(client)
|
|
|
|
|
|
|
|
client.setServiceParent(application)
|