Development - Follow Bot Updates III

in #utopian-io6 years ago (edited)


image.png

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:

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

Sort:  

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

  • WOW WOW WOW People loved what you did here. GREAT JOB!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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 ...

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. Thanks

This 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);

i resteemed your post bro.

thank you may be more successful
@money-dreamer
🔝🌟

Coin Marketplace

STEEM 0.20
TRX 0.12
JST 0.028
BTC 61436.95
ETH 3388.33
USDT 1.00
SBD 2.49