updating for feed saving

This commit is contained in:
John Facey
2021-12-13 18:13:10 -06:00
parent 4b67d45595
commit b0e5400b07
2 changed files with 8 additions and 1 deletions

View File

@@ -14,7 +14,8 @@ module.exports = {
libFlayer.addSource(title,link);
message.reply(`Adding ${title} to the list of RSS sources`);
libFlayer.writeFeed();
var sources = libFlayer.getSources();
libFlayer.writeFeed(sources);
libFlayer.loadFeeds();
},

View File

@@ -13,6 +13,12 @@ exports.addSource = function(title,source){
title: `${title}`,
link: `${source}`
}
for (i=0; i<feeds.length; i++){
if (feeds[i].link == source){
return;
}
}
feeds.push(linkData);
}