Webhooks Improved

This commit is contained in:
Luis Fernando Molina committed 2020-04-17 09:33:44 +02:00
1 parent 61810c939b
commit 59d8634c30
12 files changed
+69 -12

No files matched your search

@@ -97,8 +97,13 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, FILE_S
try {
let http = require('http');
let url = 'http://' + process.env.WEB_SERVER_URL +
':' + process.env.WEB_SERVER_PORT +
'/Webhook/Fetch-Messages/' +
bot.exchange + "/" +
bot.market.baseAsset + "-" + bot.market.quotedAsset
http.get('http://' + process.env.WEB_SERVER_URL + ':' + process.env.WEB_SERVER_PORT + '/Webhook/Fetch-Messages', onResponse);
http.get(url, onResponse);
function onResponse(response) {
@@ -33,7 +33,7 @@
}
},
"deadWaitTime": 0,
"normalWaitTime": 60000,
"normalWaitTime": 30000,
"retryWaitTime": 10000,
"sleepWaitTime": 3600000,
"comaWaitTime": 86400000,