added README.md clean up commands

This commit is contained in:
johnfacey
2021-03-18 19:28:26 -05:00
parent eb818a0f39
commit c6c7661980
10 changed files with 67 additions and 22 deletions

View File

@@ -11,13 +11,14 @@ module.exports = {
}
var search = args[0];
var found = false;
message.reply('Searching for: ' + search);
let i = 0;
var feedArray = libFlayer.getFeeds();
feedArray.forEach(linkFlay => {
if (linkFlay.title.toLowerCase().indexOf(search.toLowerCase()) > -1) {
found = true;
console.log(linkFlay.title);
message.reply(`Use !get ${i} to view: ${linkFlay.title}`);
@@ -25,5 +26,9 @@ module.exports = {
i++;
});
if (!found) {
message.reply(`No results found for: ${search}`);
}
}
};