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