<BlockMen> yolo :D
parent
069cd32382
commit
e313d46f1c
10
rssnotify.py
10
rssnotify.py
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue