Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- baseBet: { label: "Base bet", type: "balance", value: 0 },
- target: { label: "Target", type: "multiplier", value: 2 },
- betMultiplier: { label: "Bet multiplier", type: "multiplier", value: 2 },
- stawp: { label: "Stop on balance : ", type: "balance", value: 100 }
- }
- this.log(`Starting script with a base bet of ${config.baseBet.value} bits {converted by @Ghostyyy}.`)
- let bets = 0;
- while (true) {
- const { multiplier } = await this.bet(betSize(bets), config.target.value)
- if (multiplier < config.target.value) {
- bets++
- this.log(`we lost setting next bet to ${betSize(bets)} bits`)
- } else {
- bets = 0;
- this.log(`we won resetting bet to ${config.baseBet.value} bits.`)
- }
- }
- function betSize(thing) {
- const bet = config.baseBet.value + thing * config.betMultiplier.value
- return bet
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement