Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var baseBet = 2 // bits, how much you want to lose each bet?
- var baseTarget = 1.03 // this is your base target, you might hit it.
- var targetIncrease = 0.9 // this amount is added to your target after each loss
- var maxTarget = 1000 // doubles your bet and halves the target when target gets this high.
- var stopBalance = 200 // If your bank roll drops to this level it’s supposed to stop the script, I dont know for sure if it does.
- //----------------------------------------------------------
- var currentBet = baseBet
- var cashOut = baseTarget
- var startBR = balance
- var currentBR = balance
- var sessionBR = balance
- //----------------------------------------------------------
- const main = async () => {
- while (true){
- if(stopBalance>this.balance){
- stop();
- }
- //this.log(`Betting ${Math.round(currentBet)} bits @ ${cashOut}x`);
- let lastGame = await this.bet(Math.round(currentBet)*100, cashOut);
- let lastCrash = lastGame.multiplier;
- console.log(`${ lastGame.multiplier }`);
- if (lastCrash<cashOut){
- cashOut+=targetIncrease
- if(cashOut>maxTarget){
- currentBet*=2
- cashOut-=targetIncrease
- cashOut/=2
- }
- }else{
- currentBet=baseBet
- cashOut=baseTarget
- }
- this.clearLog()
- this.log(`Betting ${Math.round(currentBet)} bits @ ${Math.round(cashOut*100)/100}x`);
- this.log(`Current profit/losses: ${Math.round(this.balance-startBR)/100}`)
- this.log(`Session profit/losses: ${Math.round(this.balance-sessionBR)/100}`)
- if (lastGame.balance > startBR) {startBR = lastGame.balance;}
- }
- }
- 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
Advertisement