def execute(self): """Sends the IM with the commit message""" from toc import TocTalk, BotManager bm = BotManager() bot = TocTalk(self.screenname, self.password) bm.addBot(bot, "bot") time.sleep(4) message = self._generateMessage() names = [name.strip() for name in self.to.split(',')] for name in names: print name bot.do_SEND_IM(name, message)