added README.md clean up commands
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user