PM!
could you link me to it?
I was thinking of creating something similar to this which would not only delete suspicious posts, but also decline suspicious requests.
Suspicious posts/requests would be determined by the content//keywords/username, the user join date, avatar and blurb.
I can go ahead and do it if you guys want lol.
well thats kinda hard to predicts they are always changing. but the messages stays in a fermilier form.
I’d be constantly maintaining it, and there is pretty much always a pattern which you can pick up on without much difficulty.
Of course, false positives are bound to occur, however they’d be quite infrequent with what I’m thinking.
Use this or look at how it works for inspiration
@TheNexusAvenger @DutchDeveloper: Nope, the bot managing the devforum group was made by me. For iterating over wall posts and deleting them, you can use the groups endpoint, specifically:
- GET /v1/groups/{groupId}/wall/posts
- DELETE /v1/groups/{groupId}/wall/posts/{postId}
well its says i am not autorized to delete, how can i solve that issue?
{“errors”:[{“code”:0,“message”:“Authorization has been denied for this request.”}]}
this is what i am using
request.delete({
headers: {‘content-type’ : ‘application/x-www-form-urlencoded’},
url: posturl + str.id,
}, function(error, response, body){
console.log(body);
});
It sounds like you aren’t logged in. You’ll need to send a login cookie with your request, otherwise anyone could delete posts on any group wall.
I think you can login using this API endpoint. It probably returns some cookies in the header of the response, which you can save and use for the rest of your requests.
You need to send the login request twice. The first time it will return 403 and have X-CSRF-TOKEN
as one of its response headers. Then you send it again, but include the X-CSRF-TOKEN
in your request header. The response to the second request will have a .ROBLOSECURITY
cookie, which you need to pass as a cookie with your group wall delete requests in order to authenticate that it’s you.
If you want to easily test out HTTP APIs, I suggest Postman. I recently started using it, and it makes it really easy to figure out how HTTP APIs work. It even has a button to show you code to make the request in many different languages.
Mind sending the source code through dms?
ETA on the source code and video? I got a lot issues with the bots.
Actually the bot source was provided for him by me, so feel free to msg me so we can chat about that.
Great, will do, however I’d rather using Discord to discuss it as it’s way faster. I’ve already added you so we’ll move over to there.
I made my groups manual approval only so that I can filter bots into a bots rank so they do me a favour and make my group look like it has a few more visitors than it actually does.
They always leave shortly after their “task” is done, so honestly I think it’s a bit unnecessary doing that, I would recommend not accepting them in at all.
I still have a few bots in my group, I think when they get banned it still says they are present in my group.
Fair enough, but I’ve seen botted groups often gets a lot of hate.
Yeah, I kinda use my group to get them banned as well because I make my members mass report them for scamming.