diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ece25d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.tac +*.pyc diff --git a/commitbot.tac.example b/commitbot.tac.example index 66b4d1f..5b5c51e 100644 --- a/commitbot.tac.example +++ b/commitbot.tac.example @@ -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)