Skip to content

Commit 7f4a20b

Browse files
author
bot
committed
v200410
1 parent f69fe98 commit 7f4a20b

File tree

20 files changed

+84
-39
lines changed

20 files changed

+84
-39
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ bash start.sh
204204
|__wins__|int|Read Only|Shows the number of wins for the current session.|
205205
|__losses__|int|Read Only|Shows the number of losses for the current session.|
206206
|__profit__|double|Read Only|Shows your session profit. Session is defined as the time since opening the current instance of bot or the last time you reset your stats in the bot.|
207+
|__currencies__|string array|Read Only|List the currencies that can be used at the current site, usually in the currency short code (btc, ltc, etc.).|
208+
|__currency__|string|Read Write|Can be used to change the currency to bet in using any value from the currencies list. Only values from the currencies list can be used.|
207209

208210

209211
## Internal Functions

src/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ async function scriptBet(init, req){
306306
}
307307
previousbet = nextbet;
308308
req.body.PayIn = Math.round(parseFloat(nextbet*100000000));
309-
req.body.High = bethigh;
309+
req.body.High = bethigh.toString();
310310
req.body.Currency = currency;
311311
req.body.CurrencyValue = currencyValue;
312312
req.body.Chance = chance;

src/package.json.console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "mydicebot-console-200405",
2+
"name": "mydicebot-console-200410",
33
"version": "1.0.0",
44
"description": "MyDiceBot - Bet more, earn more!",
55
"homepage": "https://mydicebot.com",

src/public/js/999Dice/info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function init(){
66
console.log('hello 999Dice');
77
$$("manual_resetseed_button").hide();
88
$$("auto_resetseed_button").hide();
9+
consoleInit();
910
}
1011

1112
function checkParams(p,ch){
@@ -128,6 +129,7 @@ function setDatatable(ret, iswin){
128129
bet_datatable_bet_chance:chanceStr,
129130
bet_datatable_actual_chance:ret.Secret/10000,
130131
bet_datatable_profit:profitStr,
132+
bet_datatable_currency:currency,
131133
},0);
132134
}
133135

@@ -153,8 +155,8 @@ function setStats(userinfo, currencyValue){
153155
function consoleData(ret, iswin){
154156
let chanceStr = ret.High + ' '+ ret.BetRoll/10000 ;
155157
let profitStr = ((ret.PayOut-ret.PayIn)/100000000).toFixed(8);
156-
datalog.log('betid:' +ret.BetId + ' amount:'+ (ret.PayIn/100000000).toFixed(8)+ ' low_high:'+ ret.High+' payout:'+ (ret.PayOut/100000000).toFixed(8)+' chance:'+chanceStr+' actual_chance:'+ ret.Secret/10000 +' profit:'+profitStr );
157-
return ret.BetId + ','+ (ret.PayIn/100000000).toFixed(8)+ ','+ ret.High+','+ (ret.PayOut/100000000).toFixed(8)+','+chanceStr+','+ ret.Secret/10000 +','+profitStr ;
158+
datalog.log('betid:' +ret.BetId + ' amount:'+ (ret.PayIn/100000000).toFixed(8)+ ' low_high:'+ ret.High+' payout:'+ (ret.PayOut/100000000).toFixed(8)+' chance:'+chanceStr+' actual_chance:'+ ret.Secret/10000 +' profit:'+profitStr +' currency:'+ currency );
159+
return ret.BetId + ','+ (ret.PayIn/100000000).toFixed(8)+ ','+ ret.High+','+ (ret.PayOut/100000000).toFixed(8)+','+chanceStr+','+ ret.Secret/10000 +','+profitStr+','+ currency ;
158160
}
159161

160162
function consoleStats(userinfo, cv){

src/public/js/999Doge/info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function init(){
66
console.log('hello 999Doge');
77
$$("manual_resetseed_button").hide();
88
$$("auto_resetseed_button").hide();
9+
consoleInit();
910
}
1011

1112
function checkParams(p,ch){
@@ -128,6 +129,7 @@ function setDatatable(ret, iswin){
128129
bet_datatable_bet_chance:chanceStr,
129130
bet_datatable_actual_chance:ret.Secret/10000,
130131
bet_datatable_profit:profitStr,
132+
bet_datatable_currency:currency,
131133
},0);
132134
}
133135

@@ -153,8 +155,8 @@ function setStats(userinfo, currencyValue){
153155
function consoleData(ret, iswin){
154156
let chanceStr = ret.High + ' '+ ret.BetRoll/10000 ;
155157
let profitStr = ((ret.PayOut-ret.PayIn)/100000000).toFixed(8);
156-
datalog.log('betid:' +ret.BetId + ' amount:'+ (ret.PayIn/100000000).toFixed(8)+ ' low_high:'+ ret.High+' payout:'+ (ret.PayOut/100000000).toFixed(8)+' chance:'+chanceStr+' actual_chance:'+ ret.Secret/10000 +' profit:'+profitStr );
157-
return ret.BetId + ','+ (ret.PayIn/100000000).toFixed(8)+ ','+ ret.High+','+ (ret.PayOut/100000000).toFixed(8)+','+chanceStr+','+ ret.Secret/10000 +','+profitStr ;
158+
datalog.log('betid:' +ret.BetId + ' amount:'+ (ret.PayIn/100000000).toFixed(8)+ ' low_high:'+ ret.High+' payout:'+ (ret.PayOut/100000000).toFixed(8)+' chance:'+chanceStr+' actual_chance:'+ ret.Secret/10000 +' profit:'+profitStr+' currency:'+currency );
159+
return ret.BetId + ','+ (ret.PayIn/100000000).toFixed(8)+ ','+ ret.High+','+ (ret.PayOut/100000000).toFixed(8)+','+chanceStr+','+ ret.Secret/10000 +','+profitStr +','+ currency;
158160
}
159161

160162
function consoleStats(userinfo, cv){

src/public/js/Bitsler/info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function init() {
2626
{id:19,value:"BTSLR"},
2727
]);
2828
$$("bet_currency_selection").refresh();
29+
consoleInit();
2930
}
3031

3132
function checkParams(p,ch){
@@ -147,6 +148,7 @@ function setDatatable(ret){
147148
bet_datatable_bet_chance:chanceStr,
148149
bet_datatable_actual_chance:ret.betInfo.result,
149150
bet_datatable_profit:profitStr,
151+
bet_datatable_currency:currency,
150152
},0);
151153
}
152154

@@ -174,8 +176,8 @@ function setStats(userinfo, cv){
174176
function consoleData(ret, iswin){
175177
let chanceStr = ret.betInfo.condition + ' '+ ret.betInfo.target;
176178
let profitStr = ret.betInfo.profit;
177-
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ (ret.betInfo.payout).toFixed(8) +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.result +' profit:'+profitStr );
178-
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.result +','+profitStr;
179+
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ (ret.betInfo.payout).toFixed(8) +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.result +' profit:'+profitStr +' currency:'+ currency );
180+
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.result +','+profitStr+','+currency;
179181
}
180182

181183
function consoleStats(userinfo, cv){

src/public/js/Crypto-Games/info.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function init() {
2020
$$("bet_currency_selection").refresh();
2121
$$("manual_resetseed_button").hide();
2222
$$("auto_resetseed_button").hide();
23+
consoleInit();
2324
}
2425

2526
function checkParams(p,ch){
@@ -138,6 +139,7 @@ function setDatatable(ret){
138139
bet_datatable_bet_chance:chanceStr,
139140
bet_datatable_actual_chance:ret.betInfo.roll,
140141
bet_datatable_profit:profitStr,
142+
bet_datatable_currency:currency,
141143
},0);
142144
}
143145

@@ -166,7 +168,7 @@ function consoleData(ret, iswin){
166168
let chanceStr = ret.betInfo.condition + ' '+ ret.betInfo.target;
167169
let profitStr = ret.betInfo.profit;
168170
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll +' profit:'+profitStr );
169-
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ ret.betInfo.payout +','+chanceStr+','+ ret.betInfo.roll +','+profitStr;
171+
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ ret.betInfo.payout +','+chanceStr+','+ ret.betInfo.roll +','+profitStr +','+ currency;
170172
}
171173

172174
function consoleStats(userinfo, cv){

src/public/js/DuckDice/info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function init() {
2323
minBetAmount = 0.0000001;
2424
$$("manual_bet_amount").setValue(minBetAmount.toFixed(8));
2525
$$("auto_bet_base_amount").setValue(minBetAmount.toFixed(8));
26+
consoleInit();
2627
}
2728

2829
function checkParams(p,ch){
@@ -140,6 +141,7 @@ function setDatatable(ret){
140141
bet_datatable_bet_chance:chanceStr,
141142
bet_datatable_actual_chance:ret.betInfo.result,
142143
bet_datatable_profit:profitStr,
144+
bet_datatable_currency:currency,
143145
},0);
144146
}
145147

@@ -167,8 +169,8 @@ function setStats(userinfo, cv){
167169
function consoleData(ret, iswin){
168170
let chanceStr = ret.betInfo.condition + ' '+ ret.betInfo.target;
169171
let profitStr = ret.betInfo.profit;
170-
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ (ret.betInfo.payout).toFixed(8) +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.result +' profit:'+profitStr );
171-
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.result +','+profitStr;
172+
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ (ret.betInfo.payout).toFixed(8) +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.result +' profit:'+profitStr +' currency:'+currency );
173+
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.result +','+profitStr+','+currency;
172174

173175
}
174176

src/public/js/EpicDice/info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function init() {
1616
$$("bet_currency_selection").refresh();
1717
$$("manual_resetseed_button").hide();
1818
$$("auto_resetseed_button").hide();
19+
consoleInit();
1920
}
2021

2122
function checkParams(p,ch){
@@ -138,6 +139,7 @@ function setDatatable(ret){
138139
bet_datatable_bet_chance:chanceStr,
139140
bet_datatable_actual_chance:ret.betInfo.roll_number,
140141
bet_datatable_profit:profitStr,
142+
bet_datatable_currency:currency,
141143
},0);
142144
}
143145

@@ -165,8 +167,8 @@ function setStats(userinfo, cv){
165167
function consoleData(ret, iswin){
166168
let chanceStr = ret.betInfo.condition + ' '+ ret.betInfo.target;
167169
let profitStr = ret.betInfo.profit;
168-
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll_number +' profit:'+profitStr );
169-
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll_numer +','+profitStr;
170+
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll_number +' profit:'+profitStr +' currency:'+currency );
171+
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll_numer +','+profitStr +','+ currency;
170172
}
171173

172174
function consoleStats(userinfo, cv){

src/public/js/FreeBitco/info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function init() {
1010
$$("bet_currency_selection").refresh();
1111
$$("manual_resetseed_button").hide();
1212
$$("auto_resetseed_button").hide();
13+
consoleInit();
1314
}
1415

1516
function checkParams(p,ch){
@@ -132,6 +133,7 @@ function setDatatable(ret){
132133
bet_datatable_bet_chance:chanceStr,
133134
bet_datatable_actual_chance:ret.betInfo.roll,
134135
bet_datatable_profit:profitStr,
136+
bet_datatable_currency:currency,
135137
},0);
136138
}
137139

@@ -159,8 +161,8 @@ function setStats(userinfo, cv){
159161
function consoleData(ret, iswin){
160162
let chanceStr = ret.betInfo.condition + ' '+ ret.betInfo.target;
161163
let profitStr = ret.betInfo.profit;
162-
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll +' profit:'+profitStr );
163-
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll +','+profitStr;
164+
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll +' profit:'+profitStr+' currency:'+currency );
165+
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll +','+profitStr+','+currency;
164166
}
165167

166168
function consoleStats(userinfo, cv){

src/public/js/KryptoGames/info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function init() {
1919
$$("auto_bet_start_low_high").refresh();
2020
$$("manual_resetseed_button").hide();
2121
$$("auto_resetseed_button").hide();
22+
consoleInit();
2223
}
2324

2425
function checkParams(p,ch){
@@ -141,6 +142,7 @@ function setDatatable(ret){
141142
bet_datatable_bet_chance:chanceStr,
142143
bet_datatable_actual_chance:ret.betInfo.roll_number,
143144
bet_datatable_profit:profitStr,
145+
bet_datatable_currency:currency,
144146
},0);
145147
}
146148

@@ -168,8 +170,8 @@ function setStats(userinfo, cv){
168170
function consoleData(ret, iswin){
169171
let chanceStr = ret.betInfo.condition + ' '+ ret.betInfo.target;
170172
let profitStr = ret.betInfo.profit;
171-
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll_number +' profit:'+profitStr );
172-
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll_numer +','+profitStr;
173+
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll_number +' profit:'+profitStr+' currency:'+currency );
174+
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll_numer +','+profitStr+','+ currency;
173175
}
174176

175177
function consoleStats(userinfo, cv){

src/public/js/PrimeDice/info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function init() {
1313
{id:6,value:"XRP"},
1414
]);
1515
$$("bet_currency_selection").refresh();
16+
consoleInit();
1617
}
1718

1819
function checkParams(p,ch){
@@ -131,6 +132,7 @@ function setDatatable(ret){
131132
bet_datatable_bet_chance:chanceStr,
132133
bet_datatable_actual_chance:ret.betInfo.roll,
133134
bet_datatable_profit:profitStr,
135+
bet_datatable_currency:currency,
134136
},0);
135137
}
136138

@@ -158,8 +160,8 @@ function setStats(userinfo, cv){
158160
function consoleData(ret, iswin){
159161
let chanceStr = ret.betInfo.condition + ' '+ ret.betInfo.target;
160162
let profitStr = ret.betInfo.profit;
161-
datalog.log('betid:' +ret.betInfo.iid + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll +' profit:'+profitStr );
162-
return ret.betInfo.iid + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll +','+profitStr;
163+
datalog.log('betid:' +ret.betInfo.iid + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll +' profit:'+profitStr+' currency:'+currency );
164+
return ret.betInfo.iid + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll +','+profitStr+','+currency;
163165
}
164166

165167
function consoleStats(userinfo, cv){

src/public/js/SatoshiDice/info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function init() {
1111
minBetAmount = 0.00000010;
1212
$$("manual_bet_amount").setValue(minBetAmount.toFixed(8));
1313
$$("auto_bet_base_amount").setValue(minBetAmount.toFixed(8));
14+
consoleInit();
1415
}
1516

1617
function checkParams(p,ch){
@@ -128,6 +129,7 @@ function setDatatable(ret){
128129
bet_datatable_bet_chance:chanceStr,
129130
bet_datatable_actual_chance:ret.betInfo.roll,
130131
bet_datatable_profit:profitStr,
132+
bet_datatable_currency:currency,
131133
},0);
132134
}
133135

@@ -155,8 +157,8 @@ function setStats(userinfo, cv){
155157
function consoleData(ret, iswin){
156158
let chanceStr = ret.betInfo.condition + ' '+ ret.betInfo.target;
157159
let profitStr = ret.betInfo.profit;
158-
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll +' profit:'+profitStr );
159-
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll +','+profitStr;
160+
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll +' profit:'+profitStr+' currency:'+ currency );
161+
return ret.betInfo.id + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll +','+profitStr+','+ currency;
160162
}
161163

162164
function consoleStats(userinfo, cv){

src/public/js/Simulator/info.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ function consoleInit() {
44

55
function init() {
66
console.log('hello Simulator');
7-
let currencies = ["btc","eth","ltc","doge","dash","bch","xrp","zec","etc","neo","kmd","btg","lsk","dgb","qtum","strat","waves","burst"];
7+
//let currencies = ["btc","eth","ltc","doge","dash","bch","xrp","zec","etc","neo","kmd","btg","lsk","dgb","qtum","strat","waves","burst"];
88

9+
consoleInit();
910
let options=[];
1011

1112
for(i=0;i<currencies.length;i++){
@@ -141,6 +142,7 @@ function setDatatable(ret){
141142
bet_datatable_bet_chance:chanceStr,
142143
bet_datatable_actual_chance:ret.betInfo.roll_number,
143144
bet_datatable_profit:profitStr,
145+
bet_datatable_currency:currency,
144146
},0);
145147
}
146148

@@ -168,8 +170,8 @@ function setStats(userinfo, cv){
168170
function consoleData(ret, iswin){
169171
let chanceStr = ret.betInfo.condition + ' '+ ret.betInfo.target;
170172
let profitStr = ret.betInfo.profit;
171-
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ (ret.betInfo.amount).toFixed(8)+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll_number +' profit:'+profitStr );
172-
return ret.betInfo.id + ','+ (ret.betInfo.amount).toFixed(8)+ ','+ ret.betInfo.condition+','+ ret.betInfo.payout +','+chanceStr+','+ ret.betInfo.roll_number +','+profitStr;
173+
datalog.log('betid:' +ret.betInfo.id + ' amount:'+ (ret.betInfo.amount).toFixed(8)+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll_number +' profit:'+profitStr+' currency:'+currency );
174+
return ret.betInfo.id + ','+ (ret.betInfo.amount).toFixed(8)+ ','+ ret.betInfo.condition+','+ ret.betInfo.payout +','+chanceStr+','+ ret.betInfo.roll_number +','+profitStr+','+currency;
173175
}
174176

175177
function consoleStats(userinfo, cv){

src/public/js/Stake/info.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function init() {
1313
{id:6,value:"XRP"},
1414
]);
1515
$$("bet_currency_selection").refresh();
16+
consoleInit();
1617
}
1718

1819
function checkParams(p,ch){
@@ -131,6 +132,7 @@ function setDatatable(ret){
131132
bet_datatable_bet_chance:chanceStr,
132133
bet_datatable_actual_chance:ret.betInfo.roll,
133134
bet_datatable_profit:profitStr,
135+
bet_datatable_currency:currency,
134136
},0);
135137
}
136138

@@ -158,8 +160,8 @@ function setStats(userinfo, cv){
158160
function consoleData(ret, iswin){
159161
let chanceStr = ret.betInfo.condition + ' '+ ret.betInfo.target;
160162
let profitStr = ret.betInfo.profit;
161-
datalog.log('betid:' +ret.betInfo.iid + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll +' profit:'+profitStr );
162-
return ret.betInfo.iid + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll +','+profitStr;
163+
datalog.log('betid:' +ret.betInfo.iid + ' amount:'+ ret.betInfo.amount+ ' low_high:'+ ret.betInfo.condition+' payout:'+ ret.betInfo.payout +' chance:'+chanceStr+' actual_chance:'+ ret.betInfo.roll +' profit:'+profitStr +' currency:'+currency );
164+
return ret.betInfo.iid + ','+ ret.betInfo.amount+ ','+ ret.betInfo.condition+','+ (ret.betInfo.payout).toFixed(8) +','+chanceStr+','+ ret.betInfo.roll +','+profitStr +','+ currency;
163165
}
164166

165167
function consoleStats(userinfo, cv){

0 commit comments

Comments
 (0)