Say the url too + upgrade irc;
This commit is contained in:
parent
6f478ff1c1
commit
90440224ac
1
index.js
1
index.js
@ -231,6 +231,7 @@ function fetch_and_say(isIssue, id, from, chan) {
|
|||||||
var title = cheerio.load(body)('head title').text();
|
var title = cheerio.load(body)('head title').text();
|
||||||
if (title.length) {
|
if (title.length) {
|
||||||
client.say(to, title);
|
client.say(to, title);
|
||||||
|
client.say(to, url);
|
||||||
} else {
|
} else {
|
||||||
client.say(to, text_prefix + id + ": " + url);
|
client.say(to, text_prefix + id + ": " + url);
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"body-parser": "1.17.2",
|
"body-parser": "1.17.2",
|
||||||
"cheerio": "0.22.0",
|
"cheerio": "0.22.0",
|
||||||
"express": "4.15.3",
|
"express": "4.15.3",
|
||||||
"irc": "0.3.9",
|
"irc": "0.5.2",
|
||||||
"request": "2.81.0"
|
"request": "2.81.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user