public
Description: XMPP bot that posts commit summaries to MUCs.
Homepage: http://github.com/metajack/commitbot/tree/master
Clone URL: git://github.com/metajack/commitbot.git
commitbot / commitbot.tac.example
100644 24 lines (15 sloc) 0.603 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- mode: python -*-
 
from twisted.application import service, internet
from twisted.web import server
from twisted.words.protocols.jabber import jid
from wokkel.client import XMPPClient
 
from commitbot import CommitBot, WebHook
 
application = service.Application('commitbot')
 
 
client = XMPPClient(jid.internJID('user@example.com'), 'password')
client.logTraffic = True
 
bot = CommitBot('room@chat.example.com', 'gitbot')
bot.setHandlerParent(client)
 
client.setServiceParent(application)
 
site = server.Site(WebHook(bot))
server = internet.TCPServer(8888, site)
server.setServiceParent(application)