remove debug code
This commit is contained in:
parent
16de4347cb
commit
2f4848fdad
1 changed files with 1 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue