I have attached the config file...
Keep getting the following when starting bot:
Loading config...
Bot crashed at 2017/09/11 17:23:29
Reason: Failed to load config!!!
Parameter: undefined
Original error: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Promise (C:\snapshot\Gunbot-master\bot.js:0:0)
at Promise.module.exports.Promise._execute (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\debuggability.js:300:9)
at Promise.module.exports.Promise._resolveFromExecutor (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:483:18)
at new Promise (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:79:10)
at loadConfig (C:\snapshot\Gunbot-master\bot.js:0:0)
at Object.start (C:\snapshot\Gunbot-master\bot.js:0:0)
at Object.<anonymous> (C:\snapshot\Gunbot-master\bot.js:0:0)
at Module._compile (pkg/prelude/bootstrap.js:1173:22)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at Module.require (pkg/prelude/bootstrap.js:1083:31)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\snapshot\Gunbot-master\index.js:0:0)
at Module._compile (pkg/prelude/bootstrap.js:1173:22)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
Ok...fixed that, but now get:
Loading config...
Unhandled rejection TypeError: Cannot read property 'port' of undefined
at new Websocket (C:\snapshot\Gunbot-master\websocket.js:0:0)
at loadWS (C:\snapshot\Gunbot-master\bot.js:0:0)
at Bot.start.loadConfig.then (C:\snapshot\Gunbot-master\bot.js:0:0)
at tryCatcher (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\util.js:16:23)
at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:512:31)
at Promise.module.exports.Promise._settlePromise (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:569:18)
at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:614:10)
at Promise.module.exports.Promise._settlePromises (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.__dirname.Async.drainQueues (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)
at processImmediate [as _immediateCallback] (timers.js:733:5)