@@ -3185,27 +3185,40 @@ block content
3185
3185
if (webix .storage .local .get (" mydice_goodluck_time" ) != null ){
3186
3186
mydice_goodluck_time = webix .storage .local .get (" mydice_goodluck_time" );
3187
3187
}
3188
- let diff = curr_time - mydice_goodluck_time;
3189
- if (diff/ 1000 > 3600 * 24 ) {
3190
- if (totalprofit > 0 ){
3188
+ // let diff = curr_time - mydice_goodluck_time;
3189
+ // if(diff/1000 > 3600*24) {
3190
+ // if(totalprofit > 0){
3191
+ if (totalprofit > basebet* 100000 ){
3191
3192
webix .confirm ({
3192
- title: " SUPPORT MyDiceBot " ,
3193
- ok: " SUPPORT! " ,
3193
+ title: " SHARE LUCK " ,
3194
+ ok: " SHARING " ,
3194
3195
cancel: " No" ,
3195
- text: " Click SUPPORT button, surfing ads to help MyDiceBot getting profit for continuing development ." ,
3196
+ text: " Share your luck in r/mydicebot community on Reddit ." ,
3196
3197
callback : function (result ){
3197
3198
if (result) {
3199
+ dayf = difftime/ (24 * 60 * 60 );
3200
+ day = Math .floor (dayf);
3201
+ hourf = (dayf - day) * 24 ;
3202
+ hour = Math .floor (hourf);
3203
+ if (hourf > 24 ){
3204
+ spent_time = Math .floor (hourf) + " hours!" ;
3205
+ } else {
3206
+ spent_time = Math .floor ((hourf- hour) * 60 )+ " minutes!" ;
3207
+ }
3208
+ let title = encodeURIComponent (' Wow, I am earning ' + totalprofit+ ' ' + currency+ ' in just ' + spent_time);
3209
+ let text = encodeURIComponent (" WOW, MyDiceBot is really an amazing tool you should never miss for Bitcoin passive income!" );
3210
+ let link = ' https://www.reddit.com/r/mydicebot/submit?title=' + title+ ' &text=' + text;
3198
3211
window .open (
3199
- " https://acceptable.a-ads.com/1102518 " ,
3200
- " Supporting MyDiceBot Page " ,
3212
+ link ,
3213
+ " Share to Reddit " ,
3201
3214
" width=600,height=600,status=0,toolbar=0"
3202
3215
);
3203
3216
}
3204
3217
webix .storage .local .put (" mydice_goodluck_time" , curr_time);
3205
3218
}
3206
3219
});
3207
3220
}
3208
- }
3221
+ // }
3209
3222
}
3210
3223
try {
3211
3224
require (' electron' ).ipcRenderer .on (' chart' , (event , message ) => {
0 commit comments