Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. var groupId = "2753639";
  2. var Subject = "Welcome to _Unification";
  3. var Body = "Hello! \n\n On behalf of the HiCOM, Officers, and all current members, I would like to welcome you to _Unification \n\n Please purchase the uniform so you can wear it to events: \n\n http://www.roblox.com/Unification-Combat-Bottom-item?id=355518713 \n\n http://www.roblox.com/Unification-Combat-Shirt-item?id=355516012 \n\n If you have any queries, contact VaIoric , Zelnov, NotTrying or Fartyers. They will all be happy to help. \n\n [ this is an automated message, do not direct queries to this account ]";
  4.  
  5. function acceptAll() {
  6. $.get("http://www.roblox.com/My/GroupAdmin.aspx?gid=" + groupId + "#nav-members").success(function(data) {
  7. var requestTable = $(data).find("#JoinRequestsList>table>tbody");
  8. for (var i = 0; i < requestTable.children().size(); i++) {
  9. var Request = requestTable.find("tr:eq(" + i + ")");
  10. var requestId = Request.find("td:eq(3)>span").attr("data-rbx-join-request");
  11. var userId = Request.find("td:eq(0)>span").attr("data-3d-url");
  12. userId = userId.substring(userId.indexOf("=") + 1);
  13. $.post("http://www.roblox.com/group/handle-join-request", {
  14. "groupJoinRequestId": requestId
  15. });
  16. $.post("http://www.roblox.com/messages/send", {
  17. "subject": Subject,
  18. "body": Body,
  19. "recipientid": userId
  20. });
  21. }
  22. });
  23. }
  24.  
  25. function Initialise() {
  26. setInterval(function() {
  27. acceptAll();
  28. }, 1000);
  29. }
  30. Initialise();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement