Scam Remove Bot | Working

Hello my fellow robloxians. Everyday there are bots going around and posting scams in groups. and if you are like me then there are quite alot of scam posts in your group. so here i have a bot that will automatically remove them and keeps an eye out for new incoming ones!

Here are the following steps.

  1. install Node.JS

  2. install some sort of Code editor, i am using Atom

  3. make a Folder on your desktop. name doesnt matter here.

  4. Hold Shift and right click inside the folder and select run Commandpromt or Run Powershell.

image

  1. Follow this Gif.

  1. alright its time to open your Code Editor, first what we are going to do is Make a index.js file, we located that at point 2!

  2. paste this code in side your index.js

var request = require('request');
var cookie = ""
var GroupId = "00000";;
//bloxy client
const bloxy = require("bloxy")
client.bloxy = new bloxy({cookie: cookie })
client.bloxy.login()

client.bloxy.on('ready', async function() {
const group = await client.bloxy.getGroup(GroupId)
client.bloxy.group = group
console.log("[BLOXY]: Logged In")


var groupId = "00000";;

var keywords = [
  "robux",
  "thousands of robux",
  "thousands",
  "is giving access to",
  "giving access",
  "all game passes",
  "this is an official event",
  "official event",
  "no info needed","to the following link",
  "👉: rewardtool.se",
  "rewardtool.se",
  "rewardtool"
];

  rbx.getWall({group: groupId}).then(function(data){
    var posts = data.posts
    for(var i = 0; i < data.posts.length; i++) {
      var found = 0;
      var message = data.posts[i]
      for (let phase of keywords) {
        if (message.content.toLowerCase().search(phase) != -1) found +=5;
      }
      if (/\S+\.\S+/.exec(message.content)) {
      //  found += 5;
      }
      if (found >= 5) {
          console.log("Removing Scam post from " + message.author.name );
          client.bloxy.group.deleteWallPost(id).catch(function(e) { });
        //  rbx.exile({group: groupId, target: message.author, deleteAllPosts: true});
      }
    }
  }).catch(function(e) { console.log(e); });

  var onWallPost = rbx.onWallPost({group: group});
  onWallPost.on("data", function(data) {
    var found = 0;
    for (let phase of keywords) {
      if (data.content.toLowerCase().search(phase) != -1) found+=5;
    }
    if (/\S+\.\S+/.exec(data.content)) {
    //  found += 5;
    }
    if (found >= 5) {
        console.log("Removing post with `" + data.content + "`` content!");
      client.bloxy.group.deleteWallPost(id).catch(function(e) { });
    }
  });
  onWallPost.on("close", function(e) { console.log("The event has disconnected!"); });
  onWallPost.on("error", function(e) {});
}).catch(function(e) {});
  1. Make a .bat script that runs the bot
    node index.js
    pause
    Note if you installed nodemon use the following .bat code
    nodemon index.js

pause

Here are the files if yours is not working.

Credit : @DutchDeveloper For the first code / Modifyed it slightly to work with the new Group page.

if anything is not working or if your having trouble please comment under here. and i try to find a solution

3 Likes

This topic was automatically closed after 3 minutes. New replies are no longer allowed.

Requested by topic creator.