diff --git a/src/main.js b/src/main.js index f4746b3..9252b8f 100644 --- a/src/main.js +++ b/src/main.js @@ -91,8 +91,8 @@ var getUser = (u, n) => { var dl = (url, dest, cb) => { var request = (url.match(/^https/)?https:http).get(url, (response) => { // type:1=post,type:2=stfu + console.log(response.headers['content-type']); if(cfg.allowedMimes.hasOwnProperty(response.headers['content-type'])) { - console.log(cfg.allowedMimes[response.headers['content-type']]); if(response.headers['content-length'] <= cfg.maxFileSize) { checkRepost(url, (cbcr) => { if(cbcr) { diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..138d2d6 --- /dev/null +++ b/start.sh @@ -0,0 +1,2 @@ +#!/bin/bash +tmux new -d -s bot 'node src/main.js'; \ No newline at end of file