refactor all feed related into one function
This commit is contained in:
@@ -21,7 +21,6 @@ module.exports = {
|
||||
}
|
||||
|
||||
var sources = libFlayer.getSources();
|
||||
//libFlayer.getConfig();
|
||||
libFlayer.loadFeeds();
|
||||
|
||||
}
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user