|
|
|
@ -2,6 +2,8 @@ var opts = require('./opts');
|
|
|
|
|
if (require.main == module) opts.parse_args();
|
|
|
|
|
opts.load_defaults();
|
|
|
|
|
|
|
|
|
|
const khash = require("kana-hash");
|
|
|
|
|
|
|
|
|
|
var _ = require('../lib/underscore'),
|
|
|
|
|
amusement = require('./amusement'),
|
|
|
|
|
async = require('async'),
|
|
|
|
@ -21,7 +23,7 @@ var _ = require('../lib/underscore'),
|
|
|
|
|
render = require('./render'),
|
|
|
|
|
request = require('request'),
|
|
|
|
|
STATE = require('./state'),
|
|
|
|
|
tripcode = {hash:function(a){return a;}, setSalt:function(a){return a;}}, //require('./../tripcode/tripcode'),
|
|
|
|
|
tripcode = {hash:function(a,b){return new khash.Kana(0, this.salt).once(a);}, setSalt:function(a){if(a) this.salt = new khash.Salt(a); else this.salt = khash.Salt.Default; return this.salt;}}, //require('./../tripcode/tripcode'),
|
|
|
|
|
urlParse = require('url').parse,
|
|
|
|
|
web = require('./web'),
|
|
|
|
|
winston = require('winston');
|
|
|
|
|