Development - Follow Bot Updates III
These updates were made to this software which is released under “The Unlicense”. This software utilizes the Steem blockchain and focuses on the Follow functionality that it offers. The bots in the repository currently include:
deep_follow
follow_back
follow_trending_authors
generate_contest_winners
get_reblogs_steemsql
send_memo
unfollow
upvote_recent_from_trending_tags
Commits:
- https://github.com/AdamCox9/Steemit-Follow-Bot/commit/b09f2c4caf8feaa0528cc5d3d3a8ece8da007ded
- https://github.com/AdamCox9/Steemit-Follow-Bot/commit/836e5cf04d8f3fb3fe2d8a647b2bdafe89209ce4
- https://github.com/AdamCox9/Steemit-Follow-Bot/commit/4068dadafbae333f54cb9521cee279a961f38dd0
- https://github.com/AdamCox9/Steemit-Follow-Bot/commit/e641410f33e5713bda660edf612a1bd5d3ca4c8e
- https://github.com/AdamCox9/Steemit-Follow-Bot/commit/ae6c15118d67fb90ac728a00daba96570bdee331
Summary of Updates
Merged & Updated Curation Bot
The curation bot was deleted from its' own repository (https://github.com/AdamCox9/Steem-Curation-Bot) and integrated into this consolidated respository (https://github.com/AdamCox9/Steemit-Follow-Bot).
Re/moved/modified Duplicate Code
Updated send_memo to use the library. It is now just a few lines of code:
var config = require('./config');
var library = require('./library');
var library_auth = require('./library_auth');
if( config.steem.send_memos_to !== null ) {
library_auth.sendMemos( config.steem.send_memos_to )
return;
}
if( config.steem.type === 'followers')
library.getFollowers(config.steem.start,1000,library_auth.sendMemos);
else if( config.steem.type === 'following')
library.getFollowing(config.steem.start,100,library_auth.sendMemos);
else
console.log( 'config.steem.type needs to be followers or following');
Created Bot to Host Contest for Followers
This can be used to test the integrity of each entry to a hosted contest. It will check for graphic, appropriate URL, resteemed and following; all of which can set in the config.js
file (true|false
).
The common functions library was split into two files: library.js
and library_auth.js
so that the unauthenticated library works properly on its own and can be set-up on a server without storing private key. The generate_contest_winners.js
is a sample of a bot that does not use library_auth.js
.
The get_reblogs_steemsql.js
script was created from code by: @sambillingham:
https://steemit.com/steemjs/@money-dreamer/10-sbd-steemjs-programming-question
Minor Updates/Bug Fixes/Features
Minor updates, bug fixes and features were made throughout the code base.
Roadmap
Add functionality in the library for useful functions from the API up at https://github.com/steemit/steem-js/tree/master/doc This library would have working example and bots that use them as is being demonstrated. The library will also take care of some of the lower lever interactions with the API as is demonstrated with the get_followers/following functions.
There needs to be a consistent way to filter users by certain attributes that can be used across all of the bots.
This repository will be a collection of various types of bots that primarily focus on the follow functionality offered by Steem. This codebase needs to be branded and renamed to get better exposure. There are potentially many different sample bots that could be added to this project. They will be simple bots that can be personalized for different needs either through configuration or development.
Related Posts
https://steemit.com/utopian-io/@money-dreamer/creating-follow-bot-w-nodejs
https://steemit.com/utopian-io/@money-dreamer/steem-follow-bot-updates
https://steemit.com/utopian-io/@money-dreamer/steemit-follow-bot-updates-ii
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
Great post, even more functionalities.
You can contact us on Discord.
[utopian-moderator]
Hey @helo, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
Hey @money-dreamer I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
May I ask you if it can also send dunds to followers or people who post to certain tags?
It wouldn't be much work to add this functionality.
Do you have any resources where I can learn it? I am not so good with coding unfortunately ...
Here are some articles:
https://steemit.com/steem/@money-dreamer/steem-javascript-development-links
This link is very useful. Thanks mate :)
Hey! I followed your this link and I am able to design simple bot which was fetching name, STEEM and Account Creation Date & Time. I modified your code and changed it according to my requirement. Thanks for your tutorial. Now, I want to add multiple accounts in a single HTML file in a table. I am done with the table layout but I don't have foggiest idea about making changes to
<script></script>
block. Any help will be appreciated. ThanksThis bot is Node which runs on a server. The
<script></script>
tags go on a client-side web browser. Are you referring to this bot:https://github.com/AdamCox9/Creating-First-Steemit-Bot
Yeah the same I am talking about, I want to add multiple users in tabular form, I have added the first entry in row one but don't know how to add the rest as script is not fetching. I modified like this,
steem.api.getAccounts(['aamirijaz','money-dreamer'], function(err, response){ //console.log(err, response);
You should post this at https://steemit.com/steemit/@money-dreamer/creating-first-steemit-bot so other people don't get confused.
I followed you posts
i resteemed your post bro.
thank you may be more successful
@money-dreamer
🔝🌟
Nice
Thank you.
The best master post
good job !!!