Skip to content

Commit

Permalink
version 20210415
Browse files Browse the repository at this point in the history
  • Loading branch information
bot committed Apr 15, 2021
1 parent 8bd4dcf commit f9a7e27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/api/controllers/apiController.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,11 @@ exports.checkerr = async function(req, res) {
if(mess != '' && typeof mess !== 'undefined') {
//console.error(mess);
//webix.message({type: 'error', text: mess });
if (errCount>2) {
if (errCount>3) {
errCount = 1;
return res.status(200).json({'ret':false,'count':errCount});
} else {
await sleep(5000);
await sleep(10000);
errCount++;
return res.status(200).json({'ret':true,'count':errCount});
}
Expand Down
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-js-210318",
"name": "mydicebot-console-js-210415",
"version": "1.0.0",
"description": "MyDiceBot - Bet more, earn more!",
"homepage": "https://mydicebot.com",
Expand Down
8 changes: 5 additions & 3 deletions src/views/info.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3215,10 +3215,11 @@ block content
webix.message({type: type, text: text, expire: expire});
}
function betTime() {
//var currTime = new Date();
//var diff = currTime.getTime() - startTime.getTime();
var currTime = new Date();
var diff = (currTime.getTime() - startTime.getTime())/1000;
//console.log("diff diff :",diff);
difftime++;
dayf = difftime/(24*60*60);
dayf = diff/(24*60*60);
day = Math.floor(dayf);
hourf = (dayf - day) * 24;
hour = Math.floor(hourf);
Expand All @@ -3242,6 +3243,7 @@ block content
bets = 0;
totalprofit = 0;
difftime = 0;
startTime = new Date();
}
function goodLuck(){
if(totalprofit >0 && toggleDonate ){
Expand Down

0 comments on commit f9a7e27

Please sign in to comment.