update youtube.py, remove references to skybot

This commit is contained in:
neersighted 2012-02-28 23:10:36 -08:00
parent b3f8556fbc
commit acb59d8bc5
3 changed files with 4 additions and 4 deletions

View file

@ -147,8 +147,8 @@ class IRC(object):
self.set_pass(self.conf.get('server_password')) self.set_pass(self.conf.get('server_password'))
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', 'cloudbot'), "3", "*", conf.get('realname',
'Python bot - http://github.com/rmmh/skybot')]) 'CloudBot - http://git.io/cloudbot')])
def parse_loop(self): def parse_loop(self):
while True: while True:

View file

@ -47,7 +47,7 @@ def onjoin(paraml, conn=None, bot=None):
time.sleep(1) time.sleep(1)
# HTTP Useragent # HTTP Useragent
http.ua_skybot = 'CloudBot - http://git.io/cloudbot' http.ua_cloudbot = 'CloudBot - http://git.io/cloudbot'
# Stay-alive code # Stay-alive code
stayalive = conn.conf.get('stayalive') stayalive = conn.conf.get('stayalive')

View file

@ -8,7 +8,7 @@ from util import hook, http
locale.setlocale(locale.LC_ALL, '') locale.setlocale(locale.LC_ALL, '')
youtube_re = (r'(?:youtube.*?(?:v=|/v/)|youtu\.be/|yooouuutuuube.*?id=)' youtube_re = (r'(?:youtube.*?(?:v=|/v/)|youtu\.be/|yooouuutuuube.*?id=)'
'([-_a-z0-9]+)', re.I) '([-_a-zA-Z0-9]+)', re.I)
base_url = 'http://gdata.youtube.com/feeds/api/' base_url = 'http://gdata.youtube.com/feeds/api/'
url = base_url + 'videos/%s?v=2&alt=jsonc' url = base_url + 'videos/%s?v=2&alt=jsonc'