refactor all feed related into one function

This commit is contained in:
John Facey
2021-12-24 20:01:41 -06:00
parent c688251a01
commit cbb257dfa5
5 changed files with 44 additions and 43 deletions

View File

@@ -21,7 +21,6 @@ module.exports = {
}
var sources = libFlayer.getSources();
//libFlayer.getConfig();
libFlayer.loadFeeds();
}

View File

@@ -12,8 +12,7 @@ module.exports = {
var search = args[0];
var found = false;
message.reply('Searching for: ' + search);
let i = 0;
let iSave = 0
let count = 0;
@@ -37,10 +36,6 @@ module.exports = {
//message.channel.send('!get '+iSave);
}
if (count > 0) {
message.channel.send(`Displayed results for: ${search}`);
}
if (!found) {
message.reply(`No results found for: ${search}`);
}

View File

@@ -4,8 +4,6 @@ module.exports = {
name: 'update',
description: 'Get RSS Source Link',
execute(message, args) {
message.reply(`Updating Sources`);
libFlayer.getConfig();
message.reply(`Loading Feeds from Sources`);
libFlayer.loadFeeds();
feedArray = libFlayer.getFeeds();