Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const baseBet = 100 //base bet (in satoshis, 100 satoshi = 1 bit)
- const baseTarget = 100 //What multiplier you're trying to achieve 100 = 100x
- const maxRolls = 200 //max games the bot will play if infiniteRolls = false
- const infiniteRolls = true //Infinite rolls is true then ignore maxRolls
- const lossStreakDoubleDown = 90 //bet will increase bet if hits this many losses consecutively
- let target = baseTarget //initialize multiplier as base
- let currentBet = baseBet //initialize currentBet as baseBet (only increase on consecutive loss)
- let betCount = 0 //bet count if using max rolls upon start of script
- let lossStreak = 0 //loss streak upon start of script
- let consecutiveLoss = 0 // setting consecutive losses upon start of script
- this.log(`Ghostly....`)
- while (betCount < maxRolls || infiniteRolls) {
- const {multiplier} = await this.bet(currentBet, target)
- if (multiplier < target) {
- this.log('Consecutive Losses: ' + consecutiveLoss)
- lossStreak++
- consecutiveLoss++
- if (lossStreak == lossStreakDoubleDown) {
- currentBet = Math.round((currentBet * 3) / 100) * 100 //Bet multiplier on Consecutive losses (see notes)
- lossStreak = 0
- }
- } else {
- target = baseTarget
- this.log(`Win.`)
- lossStreak = 0
- currentBet = baseBet
- consecutiveLoss = 0
- }
- betCount++
- }
Add Comment
Please, Sign In to add comment