mirror of
https://github.com/Brandon-Rozek/Rozbot.git
synced 2024-11-07 20:30:34 -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;
|
return false;
|
||||||
});
|
});
|
||||||
|
if (url == undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
read(url, function(err, article, meta) {
|
read(url, function(err, article, meta) {
|
||||||
send(article.textBody);
|
send(article.textBody);
|
||||||
article.close()
|
article.close()
|
||||||
|
|
Loading…
Reference in a new issue