Guest User

Untitled

a guest
Dec 10th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. const baseBet = 100 //base bet (in satoshis, 100 satoshi = 1 bit)
  2. const baseTarget = 100 //What multiplier you're trying to achieve 100 = 100x
  3. const maxRolls = 200 //max games the bot will play if infiniteRolls = false
  4. const infiniteRolls = true //Infinite rolls is true then ignore maxRolls
  5. const lossStreakDoubleDown = 90 //bet will increase bet if hits this many losses consecutively
  6.  
  7. let target = baseTarget //initialize multiplier as base
  8. let currentBet = baseBet //initialize currentBet as baseBet (only increase on consecutive loss)
  9. let betCount = 0 //bet count if using max rolls upon start of script
  10. let lossStreak = 0 //loss streak upon start of script
  11. let consecutiveLoss = 0 // setting consecutive losses upon start of script
  12.  
  13. this.log(`Ghostly....`)
  14.  
  15. while (betCount < maxRolls || infiniteRolls) {
  16.  
  17. const {multiplier} = await this.bet(currentBet, target)
  18.  
  19. if (multiplier < target) {
  20.  
  21. this.log('Consecutive Losses: ' + consecutiveLoss)
  22. lossStreak++
  23. consecutiveLoss++
  24.  
  25. if (lossStreak == lossStreakDoubleDown) {
  26. currentBet = Math.round((currentBet * 3) / 100) * 100 //Bet multiplier on Consecutive losses (see notes)
  27. lossStreak = 0
  28. }
  29.  
  30. } else {
  31.  
  32. target = baseTarget
  33. this.log(`Win.`)
  34. lossStreak = 0
  35. currentBet = baseBet
  36. consecutiveLoss = 0
  37. }
  38.  
  39. betCount++
  40. }
Add Comment
Please, Sign In to add comment