Advertisement
TheJewishJuggernaut

Untitled

Jun 6th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var amount = prompt("What amount u want to tip to each user? (satoshi)");
  2. users = ["energ1zer", "Silverpoor2", "FanEagle", "ashy", "Frookonsi24", "gmajor77", "bobchance", "fallen2dc", "marsh", "LabKitty", "Visions", "fulcrum", "blech", "madcoin", "4chananon", "Cryptsy", "joeyarg", "wannaltcplz", "nignog123", "kuz345", "singpays"];
  3.  
  4. function tip(username, amount)
  5. {
  6.                 $.post("https://api.primedice.com/api/tip?access_token=" + localStorage.getItem('token'), { username: username, amount: amount }, function(d)
  7.              {
  8.                         tipped++;
  9.                         tip(users[tipped], amount);
  10.                  }
  11.                 ).fail(function()
  12.                 {
  13.                                 alert( "error: Username: " + username + "  rb.  " + tipped + " doesn't exist!" );
  14.                                 });
  15. }
  16.  
  17. var tipped = 0;
  18. tip(users[tipped], amount);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement