redirect links to github

This commit is contained in:
Ryan Hitchman 2010-08-24 16:59:47 -05:00
parent 949fb36c61
commit ea097aad7f
2 changed files with 8 additions and 5 deletions

View File

@ -139,7 +139,7 @@ class IRC(object):
self.set_nick(self.nick)
self.cmd("USER",
[conf.get('user', 'skybot'), "3", "*", conf.get('realname',
'Python bot - http://bitbucket.org/Scaevolus/skybot/')])
'Python bot - http://github.com/rmmh/skybot')])
def parse_loop(self):
while True:

View File

@ -45,10 +45,13 @@ def onjoin(paraml, conn=None):
@hook.regex(r'^\x01VERSION\x01$')
def version(inp, notice=None):
p = subprocess.Popen(['hg', 'id', '-n'], stdout=subprocess.PIPE)
p = subprocess.Popen(['git', 'log', '--oneline'], stdout=subprocess.PIPE)
stdout, _ = p.communicate()
p.wait()
revnumber = len(stdout.splitlines())
ret = 'r' + stdout[:-2]
notice('\x01VERSION skybot %s - http://bitbucket.org/Scaevolus/'
'skybot/\x01' % ret)
ret = stdout.split(None, 1)[0]
notice('\x01VERSION skybot %s r%d - http://github.com/rmmh/'
'skybot/\x01' % (ret, revnumber))