modified: src/main.js

new file:   start.sh
This commit is contained in:
Flummi 2016-08-14 21:27:39 +02:00
parent ac505387c6
commit 15da1547f6
2 changed files with 3 additions and 1 deletions

View File

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

2
start.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
tmux new -d -s bot 'node src/main.js';