From 15da1547f61d94dcabccee9d62d8969689dcfafb Mon Sep 17 00:00:00 2001 From: Flummi Date: Sun, 14 Aug 2016 21:27:39 +0200 Subject: [PATCH] modified: src/main.js new file: start.sh --- src/main.js | 2 +- start.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 start.sh 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