Username: Password:

Author Topic: Gunbot v5.0.1 - Poloniex/Bittrex/Kraken/Cryptopia - Core Edition - AllOs_x64 wit  (Read 60353 times)

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Gunbot v5.0.1 - Poloniex/Bittrex/Kraken/Cryptopia - Core Edition - AllOs_x64 with TRADINGVIEWS integration
@GuntharDeNiro GuntharDeNiro released this 4 minutes ago

Changelogs:

- Fix BB calculation
- Fix EMA calculation
- Add STD deviation multiplier (default 2) and SMA period to config.js so you can trigger BB values similar to what you see at exchanges
- Fix STOP LIMIT setting price to sell instead of last market price
- Update to latest KRAKEN roundings policy
- Fix multiple buy issue by checking both OpenOrders and Trading History for last order type = 'buy'
- Attempt to fix scientific notations for tiny numbers passing them ToFixed(8')
- Exposing TA values in logs (EMA1, EMA2, HIGHBB, LOWBB, SMA)
- Fix CRYPTOPIA error that sometimes shows up while getting prices
- Code cleanup
- Implementing TradingViews integration.

Instructions:
If you were already on v4.x just replace executable and use the new config.js:
Code: [Select]
{
"pairs": {
"poloniex": {
"BTC_ZRX": {
"strategy": "bb",

"override": {
"BTC_TRADING_LIMIT": 0.002
}
},
"BTC_DASH": {
"strategy": "bb",

"override": {}
}
},
"kraken": {
"DASHEUR": {
"strategy": "bb",
"override": {}
},
                        "XLTCXXBT": {
"strategy": "bb",
"override": {}
},
},
"bittrex": {
"BTC-LTC": {
"strategy": "bb",
"override": {}
},
                        "BTC-ARK": {
"strategy": "bb",
"override": {}
}
},
"cryptopia": {
"SIGT_BTC": {
"strategy": "bb",

"override": {}
},
                        "OMG_BTC": {
"strategy": "bb",

"override": {}
}
}
},

"exchanges": {
"poloniex": {
"key": "YOUR_API_KEY_HERE",
"secret": "YOUR_SECRET_KEY_HERE"
},
"kraken": {
"key": "YOUR_API_KEY_HERE",
"secret": "YOUR_SECRET_KEY_HERE"
},
"bittrex": {
"key": "YOUR_API_KEY_HERE",
"secret": "YOUR_SECRET_KEY_HERE"
},
"cryptopia": {
"key": "YOUR_API_KEY_HERE",
"secret": "YOUR_SECRET_KEY_HERE"
}

},

"bot": {
"debug": false, // not used in production

"period_storage_ticker": 2000, // number of prices to store to calculate TA indicators
"interval_ticker_update": 25000, // interval to fetch prices (default 25 seconds)

"timeout_buy": 60000, // internal timeout for buy orders
"timeout_sell": 60000, // internal timeout for sell orders

"WATCH_MODE": false, // if true it will not buy/sell
"VERBOSE": true, // if true it will show up more informations on console
"TV_GAIN": 0.6, // minimum GAIN for TradingView strategies (useful to not sell at loss)
"TV_TRADING_LIMIT": 0.001 // quote currency to use for each buy order with TradingView strategies
},

"ws": {
"port": 5001 // port to use to emit websocket API events
},

"imap_listener": {
"enabled": false, // if true, tradingview plugin is enabled (need a license)
"authorized_froms": ["noreply@tradingview.com"], // set here the sender email you want to enable
"user": "YOUR_EMAIL_HERE", // set here your TradingView alerts email
"password": "YOUR_PASSWORD_HERE", // Your email password
"host": "imap.gmail.com", // IMAP server
"port": 993, // port to use with your IMAP server
"tls": true, // tls options
"tlsOptions": {
"rejectUnauthorized": false
}
},

"strategies": {
"bb": {
"BTC_TRADING_LIMIT": 0.0001, // quote currency amount to use for each buy order
"PERIOD": 15, // candlesticks period to use for TA calculations
"EMA1": 2, // EMA1 period
"EMA2": 4, // EMA2 period
"GAIN": 2, // minimum % of GAIN to profit from bought price
"HIGH_BB": 40, // minimum sell point from higher BB
"LOW_BB": 40, // minimum buy point from lower BB
"STDV": 2, //multiplicator for BB formula
"SMAPERIOD": 50, // SMA period for BB formula
"PANIC_SELL": false, // if true sell all coins at actual market price
"DOUBLE_UP": true, // if true use the averaging down
"STOP_LIMIT": 60, // % from bought price to sell if coin value drops
"BUY_ENABLED": true, // if false do not buy
"MIN_VOLUME_TO_BUY": 0.0001, // minimum volume to buy (expressed in quote currency)
"MIN_VOLUME_TO_SELL": 0.0001 // minimum volume to sell (expressed in quote currency)

},
"gain": {
"BTC_TRADING_LIMIT": 0.001,
"PERIOD": 15,
"BUY_LEVEL": 2,
"GAIN": 2,
"EMA1": 200,
"EMA2": 50,
"HIGH_BB": 45,
"LOW_BB": 45,
"STDV": 2,
"SMAPERIOD": 50,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},

"pp": {
"BTC_TRADING_LIMIT": 0.01,
"PP_BUY": 0.00000001, // price to buy with PING PONG strategy
"PP_SELL": 0.12345678, // price to sell with PING PONG strategy
"PANIC_SELL": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"stepgain": {
"BTC_TRADING_LIMIT": 0.02,
"PERIOD": 15,
"BUYLVL1": 0.6, // % from lowest EMA to buy at if trend switches to UP in level 1
"BUYLVL2": 2, // % from lowest EMA to buy at if trend switches to UP in level 2
"BUYLVL3": 70, // % from lowest EMA to buy at if trend switches to UP in level 3
"SELLLVL1": 0.6, // % from bought price to sell at if trend switches to DOWN in level 1
"SELLLVL2": 2, // % from bought price to sell at if trend switches to DOWN in level 2
"SELLLVL3": 70, // % from bought price to sell at if trend switches to DOWN in level 3
"BUYLVL": 2, // minimum level to wait before to buy
"SELLLVL": 2, // minimum level to wait before to sell
"LASTPOINTS": 5, // how many last prices to use to decide if trend is UP or DOWN
"AVGPOINTS": 250, // how many last prices to calculate average and compare with LASTPOINTS
"AVGMINIMUM": 0.00000001, // prices rate to ignore during average of AVGPOINTS
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"bbgain": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"GAIN": 0.6,
"HIGH_BB": 45,
"LOW_BB": 45,
"STDV": 2,
"SMAPERIOD": 150,
"EMA1": 200,
"EMA2": 50,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"gainbb": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"BUY_LEVEL": 2,
"GAIN": 0.6,
"HIGH_BB": 45,
"LOW_BB": 40,
"STDV": 2,
"SMAPERIOD": 150,
"EMA1": 200,
"EMA2": 50,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"bbstepgain": {
"BTC_TRADING_LIMIT": 0.001,
"PERIOD": 15,
"HIGH_BB": 45,
"LOW_BB": 45,
"STDV": 2,
"SMAPERIOD": 150,
"SELLLVL1": 0.6,
"SELLLVL2": 2,
"SELLLVL3": 70,
"SELLLVL": 2,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"stepgainbb": {
"BTC_TRADING_LIMIT": 0.001,
"PERIOD": 15,
"HIGH_BB": 49,
"LOW_BB": 40,
"STDV": 2,
"SMAPERIOD": 150,
"BUYLVL1": 0.6,
"BUYLVL2": 2,
"BUYLVL3": 70,
"BUYLVL": 2,
"GAIN": 0.6,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},

"bbpp": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"GAIN": 0.1,
"HIGH_BB": 40,
"LOW_BB": 40,
"STDV": 2,
"SMAPERIOD": 150,
"PP_SELL": 0.12345678,
"PANIC_SELL": false,
"DOUBLE_UP": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"ppbb": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"GAIN": 0.1,
"HIGH_BB": 40,
"LOW_BB": 40,
"STDV": 2,
"SMAPERIOD": 150,
"PP_BUY": 0.00000001,
"PANIC_SELL": false,
"DOUBLE_UP": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"gainstepgain": {
"BTC_TRADING_LIMIT": 0.01,
"HIGH_BB": 45,
"LOW_BB": 45,
"STDV": 2,
"SMAPERIOD": 150,
"PERIOD": 15,
"SELLLVL1": 0.6,
"SELLLVL2": 2,
"SELLLVL3": 70,
"SELLLVL": 2,
"BUY_LEVEL": 2,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 200,
"EMA2": 50,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"stepgaingain": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"BUYLVL1": 0.6,
"BUYLVL2": 2,
"BUYLVL3": 70,
"BUYLVL": 2,
"GAIN": 2,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"gainpp": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"BUY_LEVEL": 0.1,
"PP_SELL": 0.12345678,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"ppgain": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"GAIN": 2,
"PP_BUY": 0.12345678,
"EMA1": 200,
"EMA2": 50,
"PANIC_SELL": false,
"DOUBLE_UP": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"stepgainpp": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"BUYLVL1": 1,
"BUYLVL2": 3,
"BUYLVL3": 5,
"BUYLVL": 2,
"PP_SELL": 0.1,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"DOUBLE_UP": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"ppstepgain": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"SELLLVL1": 2,
"SELLLVL2": 5,
"SELLLVL3": 10,
"SELLLVL": 2,
"PP_BUY": 0.00000001,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"DOUBLE_UP": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

}


},

"optionals": {
"toOverride": {
"BOUGHT_PRICE": 0.104744

}
}


}

For TradingViews plugin please read tutorial here https://www.tradingview.com/wiki/Creating_and_Managing_Alerts and create alerts with the following syntax:
Code: [Select]
ORDERTYPE_EXCHANGE_PAIR
Examples:
Code: [Select]
BUY_POLONIEX_BTC_ETH
SELL_POLONIEX_USDT_BTC
BUY_KRAKEN_DASHEUR
SELL_KRAKEN_XLTCXXBT
BUY_BITTREX_BTC-ETC
SELL_CRYPTOPIA_ETH_BTC
BUY_CRYPTOPIA_LTC_BTC

TradingView plugin is a paid license: its cost is 0.05 for old and new customers.


How to get your copy of GUNBOT v.5.0.1:

This this release we want to protect your Gunbot copy with some additional layers of security. Please send a PM to this user with your API keys to get instructions for your GUNBOT copy: https://gunthy.org/index.php?action=pm;sa=send;u=1.
DO NOT ACCEPT/DOWNLOAD a copy of GUNBOT v.5.0.1 from any other user or location unless they are an Authorized and Official Gunbot reseller. A complete list of AOG Resellers is available here https://gunthy.org/index.php/topic,1241.0.html
This release is safe enough to be ran and distributed to new customers (terminal cli only), by now i'm starting to include the webGUI in the code and proceed with the final release.

Please report any bug immediately!
Thanks.
~Gun
« Last Edit: September 11, 2017, 07:42:09 AM by Cat »

Offline mos87

  • Rookie
  • *
  • Posts: 15
    • View Profile
Awesome, sounds great. Am I correct that GB owners can upgrade to 5.x for free, but that the plugin (optional) costs extra? Cheers

Offline mfcmasterk

  • Rookie
  • *
  • Posts: 9
    • View Profile
pmed, thank you!

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
Awesome, sounds great. Am I correct that GB owners can upgrade to 5.x for free, but that the plugin (optional) costs extra? Cheers
It is.

Offline sylance

  • Rookie
  • *
  • Posts: 34
    • View Profile
So excited but now I'm refreshing my messages every 10-seconds waiting for a reply!  And... while I wait I'm looking for TradingView tutorials. Does anyone have recommendations on how to learn TradingView?

Offline cryptosticks

  • Contributor
  • **
  • Posts: 229
    • View Profile
So excited but now I'm refreshing my messages every 10-seconds waiting for a reply!  And... while I wait I'm looking for TradingView tutorials. Does anyone have recommendations on how to learn TradingView?

I will also need to learn about TradingView!  I like what I see.  But it's a lot for me to try and wrap my mind around at first.

Offline Cyperh

  • Rookie
  • *
  • Posts: 22
    • View Profile
We have to buy the also the Pro version of Trading view or the free account is enough?
after purchase plugin from Gunthar, obviously....

Otherwise, Can GB 5 run without TradingView Plugin?
« Last Edit: September 11, 2017, 07:31:36 AM by Cyperh »

Offline quangvny

  • Rookie
  • *
  • Posts: 5
    • View Profile
I got it today, but when the config is finished and running then the bot appears with the following error, I know that there was a problem, please help me, thanks!
Loading config...
Unhandled rejection TypeError: Cannot read property 'key' of undefined
    at exchanges.map (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Array.map (native)
    at checkLicense (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)


Offline lielianjie

  • Rookie
  • *
  • Posts: 6
    • View Profile
Any screeshot ?

Offline jonte

  • Rookie
  • *
  • Posts: 1
    • View Profile
I got it today, but when the config is finished and running then the bot appears with the following error, I know that there was a problem, please help me, thanks!
Loading config...
Unhandled rejection TypeError: Cannot read property 'key' of undefined
    at exchanges.map (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Array.map (native)
    at checkLicense (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)

That's an issue with the config file that Gunthar posted in the OP. I'm not sure if he's fixed it now but when he first posted it there was an additional comma that shouldn't be there after the Kraken bit.

Offline vertygo

  • Rookie
  • *
  • Posts: 8
    • View Profile
Getting an error about insufficient funds to put in a sell order, but I have more than enough.

Offline m33lucky

  • Rookie
  • *
  • Posts: 1
    • View Profile
dear Gunthar

i have many copys from you do i need to give all the keys ?

Offline sloaleks

  • Contributor
  • **
  • Posts: 610
    • View Profile
started on Kraken from first turn of the key, awesome ...

Offline huibstar

  • Rookie
  • *
  • Posts: 2
    • View Profile
So excited but now I'm refreshing my messages every 10-seconds waiting for a reply!  And... while I wait I'm looking for TradingView tutorials. Does anyone have recommendations on how to learn TradingView?

i use Youtube

Peace out

Offline StudioIT

  • Rookie
  • *
  • Posts: 1
    • View Profile
Getting an error about insufficient funds to put in a sell order, but I have more than enough.

Same problem here...

Offline quangvny

  • Rookie
  • *
  • Posts: 5
    • View Profile
I got it today, but when the config is finished and running then the bot appears with the following error, I know that there was a problem, please help me, thanks!
Loading config...
Unhandled rejection TypeError: Cannot read property 'key' of undefined
    at exchanges.map (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Array.map (native)
    at checkLicense (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)

That's an issue with the config file that Gunthar posted in the OP. I'm not sure if he's fixed it now but when he first posted it there was an additional comma that shouldn't be there after the Kraken bit.
I checked the code on jsonlit, everything exactly, where did the error happen, I also refer to some other config from others, it still.

Offline scarface

  • Rookie
  • *
  • Posts: 4
    • View Profile
same, upon open the bot is crashing with:

"Bot crashed at 2017/09/11 10:36:13
Reason: Failed to load config!!!
Parameter: undefined
Original error: SyntaxError: Unexpected token } in JSON at position 389
    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)"

Offline okgunbot

  • Rookie
  • *
  • Posts: 1
    • View Profile
Same here:
Failed to load config....

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
same, upon open the bot is crashing with:

"Bot crashed at 2017/09/11 10:36:13
Reason: Failed to load config!!!
Parameter: undefined
Original error: SyntaxError: Unexpected token } in JSON at position 389
    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)"
Same here:
Failed to load config....
Smfing wrong in your config.
Check it here https://jsonformatter.curiousconcept.com/

Offline btotheeck

  • Rookie
  • *
  • Posts: 1
    • View Profile
There's an extra comma character in the config file.  Just remove the comma
https://i.imgur.com/b1gvtH8.png