redirect links to github
This commit is contained in:
parent
949fb36c61
commit
ea097aad7f
|
@ -139,7 +139,7 @@ class IRC(object):
|
||||||
self.set_nick(self.nick)
|
self.set_nick(self.nick)
|
||||||
self.cmd("USER",
|
self.cmd("USER",
|
||||||
[conf.get('user', 'skybot'), "3", "*", conf.get('realname',
|
[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):
|
def parse_loop(self):
|
||||||
while True:
|
while True:
|
||||||
|
|
|
@ -45,10 +45,13 @@ def onjoin(paraml, conn=None):
|
||||||
|
|
||||||
@hook.regex(r'^\x01VERSION\x01$')
|
@hook.regex(r'^\x01VERSION\x01$')
|
||||||
def version(inp, notice=None):
|
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()
|
stdout, _ = p.communicate()
|
||||||
p.wait()
|
p.wait()
|
||||||
|
|
||||||
|
revnumber = len(stdout.splitlines())
|
||||||
|
|
||||||
ret = 'r' + stdout[:-2]
|
ret = stdout.split(None, 1)[0]
|
||||||
notice('\x01VERSION skybot %s - http://bitbucket.org/Scaevolus/'
|
|
||||||
'skybot/\x01' % ret)
|
notice('\x01VERSION skybot %s r%d - http://github.com/rmmh/'
|
||||||
|
'skybot/\x01' % (ret, revnumber))
|
||||||
|
|
Loading…
Reference in New Issue