❓ How To Make Tha User Can Withdraw Only 1 Time In 1 Day

❓ How To Make Tha User Can Withdraw Only 1 Time In 1 Day

Bots.Business codes

💌Command = Your Command Name


💭BJS = function canRun(){

var last_run_at = User.getProperty("last_withdraw");

if(!last_run_at){ return true }

var minutes = (Date.now() - last_run_at) /1000/60;

var minutes_in_day = 12 * 60

var next = minutes_in_day - minutes

var wait_hours = Math.floor(next / 60)

next -= wait_hours * 60

var wait_minutes = Math.floor(next)

var seconds = Math.floor((next - wait_minutes) * 60)

if(minutes < minutes_in_day) {

Bot.sendMessage("*📛 You Can Withdraw Only 1 Time In Day.\n\n⚠️ Come Back After "+wait_hours+" Hours "+wait_minutes+" Minutes "+seconds+" Seconds To Withdraw Again.*")

return

}

return true;

}

if(!canRun()){ return }

User.setProperty("last_withdraw", Date.now(), "integer");

Bot.runCommand("📤 Withdraw")


THIS BJS IS MADE BY Bots.Business

BOTS.BUSINESS IS BOT BUILDER FOR TELEGRAM

Bots.Business 

Report Page