<BlockMen> yolo :D

master
Sfan5 2014-05-10 23:10:56 +02:00
parent 069cd32382
commit e313d46f1c
1 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ def rsscheck(phenny, input):
('https://github.com/minetest/minetestmapper/commits/master.atom', allchans), ('https://github.com/minetest/minetestmapper/commits/master.atom', allchans),
('https://github.com/Uberi/MineTest-WorldEdit/commits/master.atom', allchans), ('https://github.com/Uberi/MineTest-WorldEdit/commits/master.atom', allchans),
('https://github.com/Jeija/minetest-mod-mesecons/commits/master.atom', allchans), ('https://github.com/Jeija/minetest-mod-mesecons/commits/master.atom', allchans),
('https://github.com/BlockMen/minetest_next/commits/master.atom', ['##minetest-next']), ('https://github.com/BlockMen/minetest_next/commits/master.atom', allchans),
] ]
for v in xrange(0, len(feeds)): for v in xrange(0, len(feeds)):
url = feeds[v][0] url = feeds[v][0]
@ -82,7 +82,7 @@ def rsscheck(phenny, input):
continue continue
if rssnotify["show_commit_link"]: if rssnotify["show_commit_link"]:
if rssnotify["use_git.io"]: if rssnotify["use_git.io"]:
params = urllib.urlencode({'url' : feed_entry.link}) params = urllib.urlencode({'url' : feed_entry.link})
# Side note: git.io only works with *.github.com links # Side note: git.io only works with *.github.com links
u = urllib.urlopen("http://git.io/create", params) u = urllib.urlopen("http://git.io/create", params)
l = u.read() l = u.read()
@ -92,9 +92,9 @@ def rsscheck(phenny, input):
commit_link = feed_entry.link commit_link = feed_entry.link
else: else:
commit_link = feed_entry.link commit_link = feed_entry.link
else: else:
commit_link = "" commit_link = ""
chans = [] chans = []
if feeds[v][1] == '*': if feeds[v][1] == '*':
chans = phenny.bot.channels chans = phenny.bot.channels
@ -127,5 +127,5 @@ rsscheck.rule = r'.*'
rsscheck.event = '*' rsscheck.event = '*'
rsscheck.thread = True rsscheck.thread = True
if __name__ == '__main__': if __name__ == '__main__':
print __doc__.strip() print __doc__.strip()