Let's grow together. A gift for you all: javascript code for a simple client side Resteem Bot! :)

in #resteem6 years ago (edited)

post-pic-code-steemer-script.png
                                                                                                                           ©

Hi Guys,
Today I decided to share with you a javascript simple script that allows you to automate resteems of links left in comments of your post.
This is conceived for posts that promote Free Resteems if the user upvotes and follows you and leaves his/her link to resteem in the comments section.

Disclaimer.. the code quality is not fantastic, it was a quick test before switching to a more complex solution. It does the job though! :)

How does it work:
It is just a script that you can use in your browser console. Relax, it does not contain any security threats. You can check it yourself if you have a basic knowledge of javascript.

The idea is to:

  • Create your Free Resteems Post (use the #resteem tag)
  • Paste the script in the Browser Console (press F12) of your newly created post - IMPORTANT
  • Let it run for as long as you want (a few hours, a couple of days, ..) - you could use an old pc and just leave it on for each post. You can also run the script simultaneously on different posts in different tabs or browsers.

The script will run, processing users' comments on your post, until you refresh or close the tab.

Here is the link to the script hosted on Github:
https://github.com/mycatnamedweb/Steemit-Resteem-script/blob/master/resteem-script.js

You're welcome! : )


Documentation:

You can customize the script simply changing the variables on top of the page identifed by the "CHANGE THESE" comment.

The only mandatory change is the account name (variable ACCOUNT_NAME). You can leave everything else as it is and the standard behaviour will be:

  • Users can leave max 3 links to be resteemed, each in a separate comment
  • The first 10 users that leave a link to resteem will also get an upvote and a follow
  • Same special treatment if the user resteems you and writes so in the comment with the link to resteem
    (You can change this but by default these keywords will be detected: "resteemed", "re-steemed", "reblogged")
  • Presence of new comments will be checked every 30 minutes and each link will be processed every 13 seconds (multiple links can be processed at the same time but it will use more resources - CPU & RAM)
  • Old separators (automatic comments left after resteeming a bunch of links) will not be deleted by default
  • Automatic comments will also mention the users that got resteemed

Again, you can change the default behaviour simply changing the variables on top of the page. Easy.   :)

PS. This script won't leave the automatic separator comments when executed on IE/Edge. To make it run there, there is a workaround that I did not add in this script. I suggest using either Chrome, Firefox or Opera. The script has been tested on all those.

PPS. The script now works on IE/Edge too.


Note that this script will work only until the Steemit team decide to update/change Steemit User Interface. At that point the script would require an update.

If you are more of a backend guy, a more robust solution is to run a nodeJs service that talks to Steemit official APIs. See some examples here.
Stay tuned, the code of a nodeJs server for that purpose will published here at some point.. ; )

Have fun guys, let's grow together!

Sort:  

Cool .. very nice of you to share such a thing.

Thanks mate, would you be so nice to resteem it so it gets some visibility? :)

I use all free resteemers that are available every day so if there's more I grow too.

Thanks, much appreciated

Instead of resteeming myself I have just sent a paid for resteembot that will also give you a small upvote. Its a human resteem bot so it may take a day or so before it actual resteems and upvotes.

  • A friendly tip ... Adding an image might help with your visibility.

Many thanks mate! :D

  • I will add a picture then, thanks!

Congratulation!!! You have been upvoted and resteemed by the Nicepost foundation. Relax we free.

Thanks mate! :)

This post was upvoted and resteemed by @resteemr!
Thank you for using @resteemr.


@resteemr is a low price resteem service.
Check what @resteemr can do for you. Introduction of resteemr.

Thanks for resteeming me @kirbyjr1977 :)

Welcome I have bots several bots on steemit that randomly upvote when criteria is met. Still new my self so not much value yet.

We see this is a wonderful post.
Congratulations!!!! You have been resteemed and upvoted by the NicePost foundation.x2

Congratulations you got resteemed!

Resteem your Posts to 10450+ Followers — just send 0.1 SBD or STEEM to @yougotresteemed with link in memo (you also will receive a 100% upvote)!

Make sure to grab up to $160 USD worth Byteball in the awesome Steemians only Byteball Airdrop —> just follow the steps provided in this post: click here

For daily bloggers we offer a Resteem subscription including at least one Resteem a day and a daily feature + daily upvotes!

Cool thanks A lot for sharing! =)
/FF

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 62227.11
ETH 2400.78
USDT 1.00
SBD 2.50