Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var groupId = "2753639";
- var Subject = "Welcome to _Unification";
- 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 ]";
- function acceptAll() {
- $.get("http://www.roblox.com/My/GroupAdmin.aspx?gid=" + groupId + "#nav-members").success(function(data) {
- var requestTable = $(data).find("#JoinRequestsList>table>tbody");
- for (var i = 0; i < requestTable.children().size(); i++) {
- var Request = requestTable.find("tr:eq(" + i + ")");
- var requestId = Request.find("td:eq(3)>span").attr("data-rbx-join-request");
- var userId = Request.find("td:eq(0)>span").attr("data-3d-url");
- userId = userId.substring(userId.indexOf("=") + 1);
- $.post("http://www.roblox.com/group/handle-join-request", {
- "groupJoinRequestId": requestId
- });
- $.post("http://www.roblox.com/messages/send", {
- "subject": Subject,
- "body": Body,
- "recipientid": userId
- });
- }
- });
- }
- function Initialise() {
- setInterval(function() {
- acceptAll();
- }, 1000);
- }
- Initialise();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement