def __init__(self, tool, irc_password): SingleServerIRCBot.__init__(self, [(server, port, irc_password)], nickname, nickname) self.git = Git(cwd=tool.scm().checkout_root, filesystem=tool.filesystem, executive=tool.executive) self.commands = { 'help': self.help, 'quit': self.stop, }
def start(self): if not self._update(): return self.last_commit = self.git.latest_git_commit() SingleServerIRCBot.start(self)