Advertisement
Guest User

Untitled

a guest
Aug 26th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. var config = {
  2. target: { value: '', type: 'text', label: 'User to follow' },
  3. perBet: { value: 0.005, type: 'multiplier', label: 'Percentage of Users Bet' }
  4. };
  5.  
  6.  
  7. log('Script is running..');
  8.  
  9. engine.on('BET_PLACED', bet => {
  10. if (bet.uname.toLowerCase() === config.target.value.toLowerCase()) {
  11.  
  12. var wager = roundBit(bet.wager * config.perBet.value);
  13.  
  14. engine.bet(wager, Number.MAX_VALUE); // aim at max profit...
  15. }
  16. });
  17.  
  18. engine.on('CASHED_OUT', cashOut => {
  19. if (cashOut.uname.toLowerCase() === config.target.value.toLowerCase()) {
  20. log('Spotted ', cashOut.uname, ' cashing out at ', cashOut.cashedAt);
  21.  
  22. if (engine.currentlyPlaying()) {
  23. engine.cashOut();
  24. }
  25. }
  26. })
  27. function roundBit(bet) {
  28. return Math.round(bet / 100) * 100;
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement