diff --git a/lib/commands/extractArticle.js b/lib/commands/extractArticle.js index dbd6e37..5303485 100644 --- a/lib/commands/extractArticle.js +++ b/lib/commands/extractArticle.js @@ -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()