Advertisement
Guest User

3 Bot

a guest
Oct 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. //SCRIPT START
  2. var baseBet = 80, // Bits ammount
  3. baseCashout = 1.25, // Cashout @ 1.07
  4. maxLoss = 400; // Amount of loss the bot will keep betting.
  5.  
  6. var Simulation = false; // (true/false) Setting this to true will make the bot to simulate a betting run.
  7.  
  8. //// ^EDIT OVER THIS LINE^ \\\\
  9.  
  10. var bet = baseBet;
  11. var cashout = baseCashout;
  12. var lastBet = bet;
  13. var lossStreak = 0;
  14. var firstGame = true;
  15. var profit = 0;
  16. var chill = false;
  17. var wins = 0;
  18. var loss = 0;
  19.  
  20. engine.on('game_starting', function(){
  21. if(lossStreak<maxLoss){
  22. console.log("Betting "+bet+" Bits on x"+cashout);
  23. if(Simulation){
  24. lastBet = bet;
  25. }else{
  26. engine.placeBet(bet*100, (cashout*100), function(){
  27. lastBet = bet;
  28. });
  29. }
  30. }else{
  31. console.log("Max loss reached! Passing one game then resetarting.");
  32. chill = true;
  33. bet = baseBet;
  34. cashout = baseCashout;
  35. lossStreak = 0;
  36. }
  37. });
  38.  
  39. engine.on('game_crash', function(data){
  40. if(data.game_crash/100<cashout && !firstGame && !chill){
  41. loss++;
  42. console.log("Game crashed under x"+cashout+" :( ("+wins+" Wins | "+loss+" Loses)");
  43. profit -= lastBet;
  44. console.log("Current Profit: "+profit.toFixed(2));
  45. lossStreak++;
  46. if(lossStreak==1){
  47. cashout = 2.1;
  48. bet *= 2;
  49. }
  50. if(lossStreak>1){
  51. cashout = 1.65;
  52. bet *= 3;
  53. }
  54. }else{
  55. if(!firstGame && !chill){
  56. wins++;
  57. console.log("Successful bet! :) ("+wins+" Wins | "+loss+" Loses)");
  58. profit += ((lastBet*cashout)-lastBet);
  59. console.log("Current Profit: "+profit.toFixed(2));
  60. bet = baseBet;
  61. cashout = baseCashout;
  62. lossStreak = 0;
  63. }
  64. }
  65. firstGame = false;
  66. if(chill) chill = false;
  67. });
  68.  
  69. function roundToTwo(num) {
  70. return +(Math.round(num + "e+2") + "e-2");
  71. }
  72. //SCRIPT END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement