diff options
author | kongr45gpen <electrovesta@gmail.com> | 2014-04-23 17:17:22 +0300 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2014-04-23 17:19:12 +0300 |
commit | abeff1e1b152dc529119417255ce16d051b1e0f6 (patch) | |
tree | 06b454c336770c4853efe0d7a4e4320b8c8190e3 /plugin.py | |
parent | 4b43712fbeff4fa766183cc48d1fe449b6ebc849 (diff) | |
download | supybot_github-abeff1e1b152dc529119417255ce16d051b1e0f6.tar.gz supybot_github-abeff1e1b152dc529119417255ce16d051b1e0f6.tar.bz2 supybot_github-abeff1e1b152dc529119417255ce16d051b1e0f6.zip |
Remove travis code
Since Github made it extremely easy to send different types of
alerts to hook services (such as the travis build status), we don't
need the error-prone solution of checking travis' IRC messages. In a
future commit, the bot will be able to handle Github's status messages.
Diffstat (limited to 'plugin.py')
-rw-r--r-- | plugin.py | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -455,29 +455,6 @@ class Github(callbacks.Plugin): self.httpd.server_close() self.__parent.die() - def doPrivmsg(self, irc, msg): - channel = "#main" - - if not msg.args[1].startswith("[travis-ci]"): - return - - message = msg.args[1] - message = message.replace("failed", colorAction("failed")) - message = message.replace("still failing", colorAction("still failing")) - message = message.replace("fixed", colorAction("fixed")) - message = message.replace("[travis-ci]", ircutils.mircColor("[travis-ci]", "light grey")) - message = re.sub(r'\(([a-zA-Z]+)+ - ([a-zA-Z0-9]+) : ([a-zA-Z0-9]+)\)', \ - "".join(["(", r'\1', " * ", ircutils.bold(r'\2') , " by ", ircutils.mircColor(r'\3', "blue") , ")"]), message) - - if self.travisCount == 0 and msg.args[1].find("passed") == -1: - irc.queueMsg(ircmsgs.privmsg(channel, message)); - self.travisShown = True - elif self.travisCount == 2 and self.travisShown == True: - irc.queueMsg(ircmsgs.privmsg(channel, message)); - self.travisShown = False - - - self.travisCount = (self.travisCount+1) % 3; def toast(self, irc, msg, args, seed, items): """<seed> <item1> [<item2> ...] |