Advertisement
batman5555515

Untitled

Oct 22nd, 2020
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. var config = {
  2. baseBet: { label: "Base bet", type: "balance", value: 0 },
  3. target: { label: "Target", type: "multiplier", value: 2 },
  4. betMultiplier: { label: "Bet multiplier", type: "multiplier", value: 2 },
  5. stawp: { label: "Stop on balance : ", type: "balance", value: 100 }
  6. }
  7.  
  8.  
  9. this.log(`Starting script with a base bet of ${config.baseBet.value} bits {converted by @Ghostyyy}.`)
  10. let bets = 0;
  11. while (true) {
  12. const { multiplier } = await this.bet(betSize(bets), config.target.value)
  13.  
  14. if (multiplier < config.target.value) {
  15. bets++
  16. this.log(`we lost setting next bet to ${betSize(bets)} bits`)
  17. } else {
  18. bets = 0;
  19. this.log(`we won resetting bet to ${config.baseBet.value} bits.`)
  20. }
  21. }
  22.  
  23. function betSize(thing) {
  24. const bet = config.baseBet.value + thing * config.betMultiplier.value
  25. return bet
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement