|
|
@ -2,6 +2,8 @@ var opts = require('./opts');
|
|
|
|
if (require.main == module) opts.parse_args();
|
|
|
|
if (require.main == module) opts.parse_args();
|
|
|
|
opts.load_defaults();
|
|
|
|
opts.load_defaults();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const khash = require("kana-hash");
|
|
|
|
|
|
|
|
|
|
|
|
var _ = require('../lib/underscore'),
|
|
|
|
var _ = require('../lib/underscore'),
|
|
|
|
amusement = require('./amusement'),
|
|
|
|
amusement = require('./amusement'),
|
|
|
|
async = require('async'),
|
|
|
|
async = require('async'),
|
|
|
@ -21,7 +23,7 @@ var _ = require('../lib/underscore'),
|
|
|
|
render = require('./render'),
|
|
|
|
render = require('./render'),
|
|
|
|
request = require('request'),
|
|
|
|
request = require('request'),
|
|
|
|
STATE = require('./state'),
|
|
|
|
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,
|
|
|
|
urlParse = require('url').parse,
|
|
|
|
web = require('./web'),
|
|
|
|
web = require('./web'),
|
|
|
|
winston = require('winston');
|
|
|
|
winston = require('winston');
|
|
|
|