@@ -3185,27 +3185,40 @@ block content
31853185 if (webix .storage .local .get (" mydice_goodluck_time" ) != null ){
31863186 mydice_goodluck_time = webix .storage .local .get (" mydice_goodluck_time" );
31873187 }
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 ){
31913192 webix .confirm ({
3192- title: " SUPPORT MyDiceBot " ,
3193- ok: " SUPPORT! " ,
3193+ title: " SHARE LUCK " ,
3194+ ok: " SHARING " ,
31943195 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 ." ,
31963197 callback : function (result ){
31973198 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;
31983211 window .open (
3199- " https://acceptable.a-ads.com/1102518 " ,
3200- " Supporting MyDiceBot Page " ,
3212+ link ,
3213+ " Share to Reddit " ,
32013214 " width=600,height=600,status=0,toolbar=0"
32023215 );
32033216 }
32043217 webix .storage .local .put (" mydice_goodluck_time" , curr_time);
32053218 }
32063219 });
32073220 }
3208- }
3221+ // }
32093222 }
32103223 try {
32113224 require (' electron' ).ipcRenderer .on (' chart' , (event , message ) => {
0 commit comments