Guest User

Untitled

a guest
May 11th, 2019
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. const baseBet = 1 const increaseOnLoss = 1.11327 const increaseOnRetart = 1.15 const startCashout = 20 const decreaseOnLoss = 1 const lowestCashout = 5 //------------------------------------------ let currentBet = baseBet let cashOut = startCashout let lc = 0 //------------------------------------------ const main = async () => { await this.log("starting script"); // script logic here, e.g.: while (true) { const { multiplier } = await this.bet(Math.round(currentBet)100, Math.round(cashOut100)/100) if (multiplier < cashOut){ if (cashOut > lowestCashout){ cashOut -= decreaseOnLoss currentBet *= increaseOnLoss }else{ cashOut = startCashout currentBet = increaseOnRetart } }else{ cashOut = startCashout currentBet = baseBet } this.clearLog() this.log(Current bet = ${Math.round(currentBet)}) this.log(`Current cashOut = ${Math.round(cashOut100)/100}`) } } while (true) { try { await main(); } catch (error) { if (error.message === "connection closed") { await this.log("connection closed. restarting script"); continue; } else { throw error; } } }
Advertisement
Add Comment
Please, Sign In to add comment