Skip to content

Commit

Permalink
Update bot.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerShop authored Mar 9, 2022
1 parent 134b7df commit 79b7d4e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ const config = require("./settings.json");

function countDown(number) {
console.log("Is about to connect the server again in " + number + " seconds");
if (number > 0) {
if (number > 1) {
setTimeout(function(){
countDown(number - 10);
}, 10000)
}
}

function countDownMinutes(number) {
console.log("The bots will disconnect from the server in " + number / 60 + " minutes");
if (number > 0) {
function countDownMinutes(numberM) {
console.log("The bots will disconnect from the server in " + numberM / 60 + " minutes");
if (numberM > 1) {
setTimeout(function(){
countDown(number - 600);
countDown(numberM - 600);
}, 600000)
}
}
Expand Down

0 comments on commit 79b7d4e

Please sign in to comment.