From 2f4848fdad67cd6fb6ba97ebd628f51b41b70354 Mon Sep 17 00:00:00 2001 From: mose Date: Sat, 21 Sep 2019 13:00:27 +0800 Subject: [PATCH] remove debug code --- src/url_metadata.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/url_metadata.js b/src/url_metadata.js index 65faf34..c617d48 100644 --- a/src/url_metadata.js +++ b/src/url_metadata.js @@ -12,9 +12,7 @@ var request_options = { bot.global.text(/(https?:\/\/[^ ,\)"\n]*)/ig, async (b) => { // console.log(JSON.stringify(b.match, null, 2)); for (url of b.match) { - console.log('-----------------------------------'); - console.log(JSON.stringify(url, null, 2)); - console.log('-----------------------------------'); + // console.log(JSON.stringify(url, null, 2)); if (!/(coa|pad)\.crapaud-fou\.org/.test(url)) { request_options.url = url; request(request_options, (err, res, body) => { @@ -32,9 +30,6 @@ bot.global.text(/(https?:\/\/[^ ,\)"\n]*)/ig, async (b) => { extra += " - [invidious](https://invidio.us/watch?v=" + t[1] + ")"; } } - console.log('-----------------------------------'); - console.log(JSON.stringify(link, null, 2)); - console.log('-----------------------------------'); b.respond("[>>>](" + link + ") _" + match[1].replace(/\n/g, " ") + "_" + extra); } } else {