Guest User

Untitled

a guest
Feb 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. var config = {
  2. target: { value: '', type: 'text', label: 'User to follow' },
  3. maxBet: { value: 1e8, type: 'balance', label: 'Max Bet' }
  4. };
  5.  
  6.  
  7. log('Script is running..');
  8.  
  9. engine.on('BET_PLACED', (bet) => {
  10. if (bet.uname == config.target.value) {
  11.  
  12. if (userInfo.balance < 100) {
  13. log('You have a balance under 1 bit, you can not bet');
  14. return;
  15. }
  16.  
  17. var wager = Math.min(userInfo.balance, bet.wager, config.maxBet.value);
  18.  
  19. engine.bet(wager, Number.MAX_VALUE); // aim at max profit...
  20. }
  21. });
  22.  
  23. engine.on('CASHED_OUT', (cashOut) => {
  24.  
  25. if (cashOut.uname === config.target.value) {
  26. log('Spotted ', cashOut.uname, ' cashing out at ', cashOut.cashedAt);
  27.  
  28. if (engine.currentlyPlaying()) {
  29. engine.cashOut();
  30. }
  31.  
  32. }
  33. })
Add Comment
Please, Sign In to add comment