mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
Merge branch 'master' of github.com:reality/depressionbot
This commit is contained in:
commit
9813ced30f
@ -20,6 +20,7 @@ var link = function(dbot) {
|
||||
|
||||
request(link, function (error, response, body) {
|
||||
if(!error && response.statusCode == 200) {
|
||||
body = body.replace(/(\r\n|\n\r|\n)/gm, " ");
|
||||
var title = body.valMatch(/<title>(.*)<\/title>/, 2);
|
||||
if(title) {
|
||||
event.reply(title[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user