From e28cc06917ef1b325a2293ebb6c1e507f98345e1 Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Thu, 4 Dec 2008 13:55:20 -0700 Subject: [PATCH] Finished tac example and added ignores. --- .gitignore | 2 ++ commitbot.tac.example | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .gitignore 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)