Development - Follow Bot Updates III

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@money-dreamer·
0.000 HBD
Development - Follow Bot Updates III
<center>
![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518228087/pzhqrzd1kyjaoxctefro.png)
</center>

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

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@money-dreamer/development-follow-bot-updates-iii">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,