remove debug code

This commit is contained in:
mose 2019-09-21 13:00:27 +08:00
parent 16de4347cb
commit 2f4848fdad

View file

@ -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 {