BustaFollow Script


SUBMITTED BY: Schizophrenia

DATE: April 23, 2016, 6:36 p.m.

UPDATED: April 23, 2016, 6:37 p.m.

FORMAT: Text only

SIZE: 1.6 kB

HITS: 613

  1. /** -------------- Settings -------------- **/
  2. var settings = {
  3. 'baseBet': 1,
  4. //Your base bet, in bits
  5. 'maxMultiplier': 100
  6. //If the person you are following does not cash out, what would you like to cash out on
  7. };
  8. /** -------------- Settings -------------- **/
  9. /** SAFE EDIT LINE
  10. * ------------------------------------------------------------------------------------------------------------------------------------------/
  11. * WARNING: ANY EDITS BEYOND THIS LINE CAN RESULT IN LOSS OF BITS
  12. * DO NOT TOUCH. THIS IS YOUR ONLY WARNING
  13. * IF YOU EDIT ANYTHING BELOW THIS LINE YOU WILL LOSE BITS. I PROMISE
  14. * ------------------------------------------------------------------------------------------------------------------------------------------ **/
  15. var script = {
  16. 'follow': null,
  17. 'cashedOut': false,
  18. 'username': engine.getUsername()
  19. };
  20. engine.on('msg', function(data) {
  21. if(data.username == script.username)
  22. {
  23. if(data.message.indexOf('$follow') > -1)
  24. {
  25. message = data.message;
  26. message = message.replace('$follow ', '');
  27. script.follow = message;
  28. console.log('Script will now follow ' + message);
  29. }
  30. }
  31. });
  32. engine.on('player_bet', function(data)
  33. {
  34. if(data['username'] == script.follow)
  35. {
  36. engine.placeBet(settings.baseBet * 100, Math.round(settings.maxMultiplier * 100), false);
  37. }
  38. });
  39. engine.on('cashed_out', function(resp) {
  40. if(script.follow == resp.username)
  41. {
  42. engine.cashOut();
  43. script.cashedOut = true;
  44. }
  45. });

comments powered by Disqus