From 134f5ca2108f60279a9f2e2788e2a10d96463b7e Mon Sep 17 00:00:00 2001 From: mose Date: Mon, 16 Sep 2019 08:39:16 +0800 Subject: [PATCH] right debug code commented --- src/url_metadata.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/url_metadata.js b/src/url_metadata.js index 1ab9246..ab8672f 100644 --- a/src/url_metadata.js +++ b/src/url_metadata.js @@ -14,8 +14,8 @@ bot.global.text(/(https?:\/\/[^ ,\)"]*)/ig, (b) => { if (!/(coa|pad)\.crapaud-fou\.org/.test(url)) { request_options.url = url; request(request_options, (err, res, body) => { + // console.log(JSON.stringify(res, null, 2)); if (!err && res.statusCode === 200) { - // console.log(JSON.stringify(res.statusCode, null, 2)); var re = /]*>([^<]*)<\/title>/gi; var match = re.exec(body); if (match && match[1]) { @@ -28,7 +28,7 @@ bot.global.text(/(https?:\/\/[^ ,\)"]*)/ig, (b) => { extra += " - [invidious](https://invidio.us/watch?v=" + t[1] + ")"; } } - b.respond("[:link:](" + link + ") _" + match[1] + "_" + extra); + b.respond("[>>>](" + link + ") _" + match[1] + "_" + extra); } } else { console.log('-----------------------------------');