示例#1
0
 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 __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,
     }
示例#3
0
 def __init__(self, tool, announce_path, irc_password):
     SingleServerIRCBot.__init__(self, [(SERVER, PORT, irc_password)], NICKNAME, NICKNAME)
     self.announce_path = announce_path
     self.git = tool.git(path=tool.git().checkout_root)
     self.commands = {
         'help': self.help,
         'ping': self.ping,
         'quit': self.stop,
     }
     self.last_commit = None
示例#4
0
 def __init__(self, tool, announce_path, irc_password):
     SingleServerIRCBot.__init__(self, [(SERVER, PORT, irc_password)], NICKNAME, NICKNAME)
     self.announce_path = announce_path
     self.git = Git(cwd=tool.scm().checkout_root, filesystem=tool.filesystem, executive=tool.executive)
     self.commands = {
         'help': self.help,
         'ping': self.ping,
         'quit': self.stop,
     }
     self.last_commit = None
示例#5
0
 def __init__(self, tool, announce_path, irc_password):
     SingleServerIRCBot.__init__(self, [(server, port, irc_password)], nickname, nickname)
     self.announce_path = announce_path
     self.git = Git(cwd=tool.scm().checkout_root, filesystem=tool.filesystem, executive=tool.executive)
     self.commands = {
         'help': self.help,
         'ping': self.ping,
         'quit': self.stop,
     }
     self.last_commit = None
示例#6
0
 def start(self):
     if not self._update():
         return
     self.last_commit = self.git.latest_git_commit()
     SingleServerIRCBot.start(self)
示例#7
0
 def start(self):
     if not self._update():
         return
     self.last_commit = self.git.latest_git_commit()
     SingleServerIRCBot.start(self)