Today i am gonna make a post about creating a comment bot on steemit that will stream the blockchain for newly created posts and comment there in your desired tag is to be found.
Requirement
- Linux Server with Internet Access
- Node Js
- Steemjs
You could get cheap servers in digital ocean.
Assumimg you have a ubuntu 20.10 server and nodejs installed .
npm install steemjs
This will isntall steemjs libraries in your server .
Create a file called index.js and copy all the code from this link
nano index.js
https://github.com/ssdc-chain/Steem-Commnet_Bot/blob/main/index.js
Alternatevely you can also fork the git hub
git clone https://github.com/ssdc-chain/Steem-Commnet_Bot.git
There are few files to edit so that the bot shall work properly
In the third line replace the username with your account username , and in the 6th line replace the 'posting_key' with your posting key to authorize posting through the bot . In the 4th line you can replace the tag with your desired tag where you want to automatically comment . There are other options that you can customize as well , in the 5th line where the tagfetch varialbe is defined you can change those to any amount of posts you want to fetch once you run the bot .
I will be posting these types of tutorial on a daily basis and you can lear a lot from it .
Please follow me so that you will not miss my posts .