View difference between Paste ID: aucmz9T3 and 8XWdsZFn
SHOW: | | - or go back to the newest paste.
1
/*
2
3
Go to the group page you want to spam when running this.
4
Inspect Element->Console and copy and paste the code.
5
Wait time can be adjusted and the bot will attempt to send messages super fast, but it's good to keep the time high or ROBLOX will detect flooding.
6
7
You can change the group number to the group you are recruiting for so that it doesn't send the message to people in that group.
8
9
*/
10
11
var waitTime = 5; // In seconds
12
var group = 0; // 0 for no group check, otherwise people in this group will not receive the message
13
function sendMsg(userId, username) {
14
	function send() {
15
		$.post('http://www.roblox.com/messages/send',{
16
			subject: '[FL] Group Invitation',
17-
			body: 'Hello, ' + username + '. I am Blizzardus, founder and present Chancellor of a group named Frostium Legion. Frostium Legion is a futuristic war group set on a planet called Frostus which we all protect. Earthlings are trying to attack our planet and invade our homeland for themselves but the Frost Warriors are doing all they can to protect it from these invaders. We use our Frozen Abyssal Blades to annihilate the intruders.\n\nThis is basically our storyline of Frostium Legion. All members are named as Frost Warriors. Many lore is in this group and much more will be added into it. I hope you are already interested of the basic storyline so far. This is only the beginning of the groups content, lore is something not many groups have, alongside many other unique things in the legion.\n\nFrostium Legion is a community group meaning we work as a team to defeat the attackers in the fields of battle. We are pretty much a gigantic family, all soldiers are respected, we are not like VAK were you get insulted or told to shut up and things like that, we make the group enjoyable! If you ever have any suggestions on how to make the group more of the way you desire it to be then PM a Council and its likely they will take it into an idea and tell everyone in the Council Meeting if its a good idea!\n\nFrostium Legion is huge with more than 800 dedicated members and growing by the day. Frostium Legion is active at most times with the minimum of about 8 attending, but thats usually unlikely. The members are disciplined and well organised, if they are told to do something they would do it immediately without having to ask a second time. We are a swords only clan. If you are looking for a fun, active and well disciplined clan with respect amongst all members then this is the perfect one for you.\n\nWe are in need of active High Ranks and also people that can GFX, build and script. These people will be invited to the Dev Team and will be rewarded for their efforts. We need experienced High Ranks too to join Frostium Legion, many High Ranks are quite inactive.\n\nIf you have a question then you can ask it now, never hesitate to ask me anything!\nIf you ever consider joining then click the link below!\nhttp://www.roblox.com/My/Groups.aspx?gid=1019757',
17+
			body: 'Hello, ' + username + '. I am FLRecruitMessenger (alternative of Blizzardus) and I am founder and present Chancellor of a war-clan named Frostium Legion. I would be delighted if you were to join us and participate in the group as much as possible. We are a fun and immersive clan, we do not just have training's and raids constantly, instead, the Council and I make the group as entertaining as we can. Do consider joining Frostium Legion if you have not already, it would be greatly appreciated. \n\nGroup Link: http://www.roblox.com/My/Groups.aspx?gid=1019757',
18
			recipientid: userId,
19
			cacheBuster: new Date().getTime()
20
		}).done(function(response) {
21
			if (response.success == true) {
22
				console.log('Sent message to ' + username + ' (' + userId + ')');
23
			} else {
24
				console.log('Error sending to ' + username + ': ' + response.shortMessage);
25
			}
26
		});
27
	}
28
	if (group > 0) {
29
		$.get('http://www.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=' + userId + '&groupid=' + group, function(response) {
30
			if(response.indexOf('true') == -1) {
31
				send();
32
			} else {
33
				console.log('Didn\'t send a message to ' + username + ' because he is already in group ' + group + '.');
34
			}
35
		});
36
	} else {
37
		send();
38
	}
39
}
40
41
function run() {
42
	var timeout = 0;
43
	var elements = document.evaluate('//div[contains(@id,\'ctl00_cphRoblox_rbxGroupRoleSetMembersPane_GroupMembersUpdatePanel\')]//div[contains(@class,\'GroupMember\')]//span[contains(@class,\'Name\')]/a',document,null,XPathResult.UNORDERED_NODE_ITERATOR_TYPE,null);
44
	var currentNode = elements.iterateNext();
45
	while (currentNode) {
46
		(function(time,id,name) {
47
			setTimeout(sendMsg,time,id,name);
48
		})(timeout,currentNode.href.match(/\d+/)[0],currentNode.textContent);
49
		timeout+=waitTime*1000;
50
		currentNode = elements.iterateNext();
51
	}
52
	__doPostBack('ctl00$cphRoblox$rbxGroupRoleSetMembersPane$dlUsers_Footer$ctl02$ctl00','');
53
	var ready = setInterval(function() {
54
		if (document.getElementById('__EVENTTARGET').value == '') {
55
			clearInterval(ready);
56
			setTimeout(run,timeout);
57
		}
58
	}, 10);
59
}
60
var ready = setInterval(function() {
61
    if (document.readyState === 'complete') {
62
        clearInterval(ready);
63
        run();
64
    }
65
}, 10);