Finished tac example and added ignores.

master
Jack Moffitt 2008-12-04 13:55:20 -07:00
parent 8db2d69000
commit e28cc06917
2 changed files with 16 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.tac
*.pyc

View File

@ -1,3 +1,17 @@
# -*- mode: python -*-
from twisted.application import service
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)