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

@@ -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}`);
}