AssHunter.js v0.0.1 Released - Open Sourced STEEM Self Defense / Anti-Asshole Bot!

It wasn't long ago the STEEM network was terrorized by a highly effective and somewhat devious brand of psychological warfare that came through in the form of the @asshole.

Basically, long story short the user responsible for the deployment of the asshole account had it set up to flag nearly every post for a bit before switching it to attack comment for a while... It wasn't good with some of our users comments hidden by these automated 1% flags..

( It goes on like this for likely thousands of flags - screencap from steemd.com/@asshole)

It Looked Like The Flags Would Never End..!

However the STEEM network happens to be inhabited by certain power users that double as super heros. The 3 gloriously esteemed users responsible for the initial defense / counter-attack on the @asshole account are listed below in bold for you to check out / follow:

@anyx

@timcliff

@pfunk

These users were able to deploy their own private counter measures and pool their resources to help unhide comments that had fallen prey to @asshole's deviant game of flag em' all.

While it's great that privately owned and run systems are in place protecting our network against potential outside enemies one must always find a way to protect themselves as well.

( 2 days before this post I declared war on @asshole )

Which is why I bring you this easy to use code for self defense on our STEEM network:

Asshunter.js v0.0.1 Source Code

//--------------------------------------------------------------------------
//----- AssHat Hunter v0.0.1 || Open Source Anti-Asshat Node.js Script -----
//----- Developed by @KLYE || Free to Use for All! || Free to Modify -------
//----- Rekuirements to run: Node.js + steem.js + node-datetime  -----------
//----- npm install steem --save  ||  npm install node-datetime --save -----
//--------------------------------------------------------------------------
//----- PLEASE DO NOT USE THIS CODE BELOW MALICIOUSLY / FOR EVIL DEEDS -----
//--------------------------------------------------------------------------


//----- CONFIG + Get Rekuirements 

// ***IMPORTANT*** Your Account Name Below (No @)
var hero = 'youraccount';

// ***IMPORTANT*** Your Posting Private Key Below
var herowifkey = '5P0St1nGpR1vK3ys7rz9zJzLGjgHn4aWX79MC6jh3y3W3DJk';

// ***IMPORTANT*** Enter Asshat's Account Below (No @)
var asshat = "asshatsaccount";

// No need to modify these variables
var steem = require('steem');
var dateTime = require('node-datetime');
var dt = dateTime.create();
var totalblocks = 0;
var totalvote = 0;
var totalcomment = 0;

//----- Script Started + Show Time
     var starttime = dt.format('Y-m-d H:M:S');
console.log("===================================================================");
console.log("-------------------------------------------------------------------");
console.log("AssHat Hunter v0.0.1 ONLINE - By @KLYE - Listening to STEEM Network");
console.log("-------------------------------------------------------------------");
console.log("===================================================================");
console.log("---------------- Start Time: " + starttime + " ------------------");
console.log("-------------------------------------------------------------------");
console.log(" ");

//----- Grab Current STEEM Block
steem.api.streamBlockNumber(function(err1, newestblock) {
    totalblocks++
    console.log("-------------------------------------------------------------------");
    console.log("Scanning STEEM Block #" + newestblock + " for Asshat Account @" + asshat);
    console.log("-------------------------------------------------------------------");
    console.log("Blocks Monitored this Session Against Asshats = " + totalblocks);
    console.log("Upvotes This Session Against Asshats = " + totalvote);
    console.log("Comments Flagged This Session Against Asshats = " + totalcomment);
    console.log(" ");
});

//NOTE: Sometimes the Script Fails to Hook Into STEEM. Try Running Script Again if it Fails!


//----- See if Vote is our Target Asshat ----
 var process_vote = function(op) {
      if (op["voter"] == asshat) {
        if(op["weight"] < 0 ){
          totalvote++
          console.log("-------------------------------------------------------------");
          console.log("----- ASSHAT FLAG DETECTED - Deploying Counter Upvote! ------");
          console.log("-------------------------------------------------------------");

          steem.broadcast.vote(
            herowifkey,
            hero,
            op["author"],
            op["permlink"],
            10000,
              function(uperr, result) {
              console.log(uperr, result);
              }
            );
        }
      }
  };
 
//----- See if Comment is our Target Asshat ---- 
 var process_comment = function(op) {
      if (op["author"] == asshat) {
        totalcomment++
        console.log("-------------------------------------------------------------");
        console.log("----- ASSHAT COMMENT DETECTED - Deploying Counter Flag! -----");
        console.log("-------------------------------------------------------------");

        steem.broadcast.vote(
            herowifkey,
            hero,
            op["author"],
            op["permlink"],
            -10000,
              function(downerr, result) {
              console.log(downerr, result);
              }
        );       
      }
  };

Requirements

You'll need a computer with a stable internet connection, node.js, steem.js(by @fabien) and node-datetime. All of these are relatively easy to find and set up for your slightly in the know modern computer user. If you don't have the technical knowledge to run this script on your own and would like it set up for you it can be arranged for a one time fee of 10.000 SBD which includes some free tech support help, other fees such as 3rd party monthly server subscriptions may apply. Contact me for details.

^ If it pulls this crap just try restarting the script.


Vote @klye for Witness!

https://steemit.com/~witnesses


A Proud STEEMbassador of Canada

Thank you for your votes, the opportunity and support!

H2
H3
H4
3 columns
2 columns
1 column
44 Comments