Skip to content

Commit

Permalink
console lua update
Browse files Browse the repository at this point in the history
  • Loading branch information
bot committed Jan 13, 2021
1 parent d48dd81 commit 3787a0d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/package.json.console
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "mydicebot-console-201027",
"name": "mydicebot-console-js-210114",
"version": "1.0.0",
"description": "MyDiceBot - Bet more, earn more!",
"homepage": "https://mydicebot.com",
Expand Down
31 changes: 22 additions & 9 deletions src/views/info.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3185,27 +3185,40 @@ block content
if(webix.storage.local.get("mydice_goodluck_time") != null){
mydice_goodluck_time = webix.storage.local.get("mydice_goodluck_time");
}
let diff = curr_time - mydice_goodluck_time;
if(diff/1000 > 3600*24) {
if(totalprofit > 0){
//let diff = curr_time - mydice_goodluck_time;
//if(diff/1000 > 3600*24) {
//if(totalprofit > 0){
if(totalprofit > basebet*100000){
webix.confirm({
title:"SUPPORT MyDiceBot",
ok:"SUPPORT!",
title:"SHARE LUCK",
ok:"SHARING",
cancel:"No",
text:"Click SUPPORT button, surfing ads to help MyDiceBot getting profit for continuing development.",
text:"Share your luck in r/mydicebot community on Reddit.",
callback:function(result){
if(result) {
dayf = difftime/(24*60*60);
day = Math.floor(dayf);
hourf = (dayf - day) * 24;
hour = Math.floor(hourf);
if(hourf >24){
spent_time = Math.floor(hourf) +" hours!";
} else{
spent_time = Math.floor((hourf-hour) * 60)+" minutes!";
}
let title = encodeURIComponent('Wow, I am earning '+totalprofit+' '+currency+' in just '+ spent_time);
let text = encodeURIComponent("WOW, MyDiceBot is really an amazing tool you should never miss for Bitcoin passive income!");
let link = 'https://www.reddit.com/r/mydicebot/submit?title='+title+'&text='+text;
window.open(
"https://acceptable.a-ads.com/1102518",
"Supporting MyDiceBot Page",
link,
"Share to Reddit",
"width=600,height=600,status=0,toolbar=0"
);
}
webix.storage.local.put("mydice_goodluck_time", curr_time);
}
});
}
}
//}
}
try {
require('electron').ipcRenderer.on('chart', (event, message) => {
Expand Down

0 comments on commit 3787a0d

Please sign in to comment.