-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.js
45 lines (37 loc) · 1.42 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//Dependencies
const Request = require("request")
//Variables
const Self_Args = process.argv.slice(2)
//Main
if(!Self_Args.length){
console.log("node index.js <webhook_link>")
process.exit()
}
if(!Self_Args[0]){
console.log("Invalid webhook_link.")
process.exit()
}
setInterval(function(){
const group_id = Math.floor(Math.random() * 1150000)
Request(`https://groups.roblox.com/v1/groups/${group_id}`, function(err, res, body){
if(err){
console.log(`[ORGF][Invalid] https://www.roblox.com/groups/group.aspx?gid=${group_id}`)
return
}
body = JSON.parse(body)
if(!body.owner && body.publicEntryAllowed){
Request.post(Self_Args[0], {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: `content=[ORGF][Valid] https://www.roblox.com/groups/group.aspx?gid=${group_id} | Name: ${body.name} | Members: ${body.memberCount}`
}, function(err, res, body){
console.log(`[ORGF][Valid] https://www.roblox.com/groups/group.aspx?gid=${group_id} | Name: ${body.name} | Members: ${body.memberCount}`)
})
return
}else{
console.log(`[ORGF][Invalid] https://www.roblox.com/groups/group.aspx?gid=${group_id} | Name: ${body.name} | Members: ${body.memberCount}`)
return
}
})
}, 1000)