update youtube.py, remove references to skybot
This commit is contained in:
parent
b3f8556fbc
commit
acb59d8bc5
3 changed files with 4 additions and 4 deletions
|
@ -147,8 +147,8 @@ class IRC(object):
|
|||
self.set_pass(self.conf.get('server_password'))
|
||||
self.set_nick(self.nick)
|
||||
self.cmd("USER",
|
||||
[conf.get('user', 'skybot'), "3", "*", conf.get('realname',
|
||||
'Python bot - http://github.com/rmmh/skybot')])
|
||||
[conf.get('user', 'cloudbot'), "3", "*", conf.get('realname',
|
||||
'CloudBot - http://git.io/cloudbot')])
|
||||
|
||||
def parse_loop(self):
|
||||
while True:
|
||||
|
|
|
@ -47,7 +47,7 @@ def onjoin(paraml, conn=None, bot=None):
|
|||
time.sleep(1)
|
||||
|
||||
# HTTP Useragent
|
||||
http.ua_skybot = 'CloudBot - http://git.io/cloudbot'
|
||||
http.ua_cloudbot = 'CloudBot - http://git.io/cloudbot'
|
||||
|
||||
# Stay-alive code
|
||||
stayalive = conn.conf.get('stayalive')
|
||||
|
|
|
@ -8,7 +8,7 @@ from util import hook, http
|
|||
locale.setlocale(locale.LC_ALL, '')
|
||||
|
||||
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/'
|
||||
url = base_url + 'videos/%s?v=2&alt=jsonc'
|
||||
|
|
Reference in a new issue