Svnci bot module ################################################################################ # description Simple script / mozbot module for printing subversion commit messages to an irc channel ################################################################################ # installation Both of these should be configured as detailed below. They communicate via a shared file, so both the mozbot process and the post commit script should have write access to the file. Either side will create the file if it's not there, so if you need to set specific permissions, be sure to do that before activating it. postci-ircmsg is the subversion post-commit hook script that triggers the bot message. It should be called as: postci-ircmsg Either copy it to your hooks directory for the repo, or call it from your post-commit script. Usually like `PATH/postci-ircmsg "$REPOS" "$REV"' Svnci.bm is the bot module, copy it to mozbot_installation/BotModules and then issue the `load Svnci' command. ################################################################################ # bot config variables file [default /tmp/.svnci] the file to read messages from must match $svnci_file at the top of postci-ircmsg polltime [default 5] the interval to check for new messages in seconds channel [default undef] if defined only sends messages to this one channel if not defined sends to the built in array channels - all the channels the bot is currently in ################################################################################ # post commit file config # base svn dir - what to chop off the beginning of the repo my $base_svndir = ''; # file to write output to, must match var file in bot module my $svnci_file = '/tmp/.svnci'; # svnlook path. my $svnlook = "/usr/local/bin/svnlook"; ################################################################################ # TODO add regex filters to route message destinations based on repo move the irc formatting to the irc bot and make the post commit script write to some sort of intermediate data format ################################################################################ # contact Matt Griswold 6CF4 A97B 55A5 BBD6 FF06 6F0B F99D 7C86 6B2E 514F http://oss.devit.com/matt/