mirror of
https://github.com/Brandon-Rozek/Rozbot.git
synced 2024-12-17 22:22:01 -05:00
Added to check if url exists and to exit if it doesnt on article extractor
This commit is contained in:
parent
d06f585ade
commit
7defad2af6
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ module.exports = new Command("ExtractArticle", condition, function(text, send, u
|
|||
}
|
||||
return false;
|
||||
});
|
||||
if (url == undefined) {
|
||||
return;
|
||||
}
|
||||
read(url, function(err, article, meta) {
|
||||
send(article.textBody);
|
||||
article.close()
|
||||
|
|
Loading…
Reference in a new issue