[RssNotify] Add minetest/master-server

This commit is contained in:
sfan5 2014-07-05 15:00:14 +02:00
parent fdd51f2b99
commit 2cb0cf9325

View File

@ -19,10 +19,10 @@ def to_unix_time(st): # not really accurate, but works
t += int(g[0]) * 60 * 60 * 24 * 30 * 12 t += int(g[0]) * 60 * 60 * 24 * 30 * 12
return t return t
def excepta(arr, e): def excepta(arr, exclude):
o = [] o = []
for el in arr: for el in arr:
if el != e: if not el in exclude:
o.append(el) o.append(el)
return o return o
@ -42,11 +42,12 @@ def rsscheck(phenny, input):
rssnotify["last_update"] = t rssnotify["last_update"] = t
print("[RssNotify]: Checking RSS Feeds...") print("[RssNotify]: Checking RSS Feeds...")
start = time.time() start = time.time()
allchans = excepta(excepta(phenny.bot.channels, '##minebest'), '##minetest-next') allchans = excepta(phenny.bot.channels, ['##minebest', '##minetest-next'])
feeds = [ feeds = [
('https://github.com/minetest/minetest/commits/master.atom', allchans), ('https://github.com/minetest/minetest/commits/master.atom', allchans),
('https://github.com/minetest/minetest_game/commits/master.atom', allchans), ('https://github.com/minetest/minetest_game/commits/master.atom', allchans),
('https://github.com/minetest/minetestmapper/commits/master.atom', allchans), ('https://github.com/minetest/minetestmapper/commits/master.atom', allchans),
('https://github.com/minetest/master-server/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', allchans + ['##minetest-next']), ('https://github.com/BlockMen/minetest_next/commits/master.atom', allchans + ['##minetest-next']),