Advertisement
Guest User

Untitled

a guest
Feb 10th, 2017
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <script src="http://cdn.steemjs.com/lib/latest/steem.min.js"></script>
  6. <script>
  7.  
  8. //----- Rekuirements to run: Node.js + steem.js + node-datetime -----------
  9. //----- npm install steem --save || npm install node-datetime --save -----
  10. //--------------------------------------------------------------------------
  11. //----- PLEASE DO NOT USE THIS CODE BELOW MALICIOUSLY / FOR EVIL DEEDS -----
  12. //--------------------------------------------------------------------------
  13.  
  14.  
  15. //----- CONFIG + Get Rekuirements
  16.  
  17. // ***IMPORTANT*** Your Account Name Below (No @)
  18. var hero = 'hero';
  19.  
  20. // ***IMPORTANT*** Your Posting Private Key Below
  21. var herowifkey = '5KM5UC9zzzzzzzzzzzzzzg3P8Y3MstfTVrUonmx5Hbpy1F8c';
  22.  
  23. // ***IMPORTANT*** Enter Asshat's Account Below (No @)
  24. var asshat = "asshet";
  25.  
  26. // No need to modify these variables
  27. var totalblocks = 0;
  28. var totalvote = 0;
  29. var totalcomment = 0;
  30.  
  31. //----- Script Started + Show Time
  32.  
  33. console.log("===================================================================");
  34. console.log("-------------------------------------------------------------------");
  35. console.log("AssHat Hunter v0.0.1 ONLINE - By @KLYE - Listening to STEEM Network");
  36. console.log("-------------------------------------------------------------------");
  37. console.log("===================================================================");
  38. console.log("-------------------------------------------------------------------");
  39. console.log(" ");
  40.  
  41. //----- Grab Current STEEM Block
  42. steem.api.streamBlockNumber(function(err1, newestblock) {
  43. totalblocks++
  44. console.log("-------------------------------------------------------------------");
  45. console.log("Scanning STEEM Block #" + newestblock + " for Asshat Account @" + asshat);
  46. console.log("-------------------------------------------------------------------");
  47. console.log("Blocks Monitored this Session Against Asshats = " + totalblocks);
  48. console.log("Upvotes This Session Against Asshats = " + totalvote);
  49. console.log("Comments Flagged This Session Against Asshats = " + totalcomment);
  50. console.log(" ");
  51. });
  52.  
  53. //NOTE: Sometimes the Script Fails to Hook Into STEEM. Try Running Script Again if it Fails!
  54.  
  55.  
  56. //----- See if Vote is our Target Asshat ----
  57. var process_vote = function(op) {
  58. if (op["voter"] == asshat) {
  59. if(op["weight"] < 0 ){
  60. totalvote++
  61. console.log("-------------------------------------------------------------");
  62. console.log("----- ASSHAT FLAG DETECTED - Deploying Counter Upvote! ------");
  63. console.log("-------------------------------------------------------------");
  64.  
  65. steem.broadcast.vote(
  66. herowifkey,
  67. hero,
  68. op["author"],
  69. op["permlink"],
  70. 10000,
  71. function(uperr, result) {
  72. console.log(uperr, result);
  73. }
  74. );
  75. }
  76. }
  77. };
  78.  
  79. //----- See if Comment is our Target Asshat ----
  80. var process_comment = function(op) {
  81. if (op["author"] == asshat) {
  82. totalcomment++
  83. console.log("-------------------------------------------------------------");
  84. console.log("----- ASSHAT COMMENT DETECTED - Deploying Counter Flag! -----");
  85. console.log("-------------------------------------------------------------");
  86.  
  87. steem.broadcast.vote(
  88. herowifkey,
  89. hero,
  90. op["author"],
  91. op["permlink"],
  92. -10000,
  93. function(downerr, result) {
  94. console.log(downerr, result);
  95. }
  96. );
  97. }
  98. };
  99. </script>
  100. </body>
  101. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement