Development - Follow Bot Updates III

in utopian-io •  7 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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

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

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.스크린샷 2018-01-22 오후 10.54.32.png

The best master post

good job !!!

nice @money-dreamer
please follow me @erjaoktafian
thanks

Thank you for contributing to steemite development

Thanks for your service @money-dreamer

This is wonderful, Juvy! Wishing you success with the hub project.

For a Newbie here on steemit, this is confusing. but, maybe because I don't write code. I've been on this platform for a week now, trying to soak it all in. lol. I've wanted to thank you @money-dreamer, because I believe you gave me a deposit in my wallet.. a few times. That was very nice. I can use all the help I can get at this point. I'm having a hard time getting noticed out there..lol but i wanted to say thanks!

updated now

Awesome @ money-dreamer. I followed you.
I'm a computer science student and would like to know more about coding programs.
Please follow me and upvote @tumishobillson

JavaScript is a great language to learn! Follow through my tutorials and other peoples tutorials here. How long have you been programming?

Automatic?

What do you mean?

You code programs

Yes. I code programs.

Best code program, forFullback rested and upvote broo

thank you for the rewards hoping for mom lol

Thank you

Thanks for the contribution

I donot understand this methods

Great job.... amazing...

Good job @money-dreamer

Good work! i'm following your tutorials..Btw, i got a quick question!
Is there any tutorial link about "Auto Reply Bot"??

Very nice post and great article.. By @atjehsteemit

Good work @money-dreamer

Steem on

hey, upvote my threat please :)

Wow thank you so much

Congratulations, your post have been resteem by @resteem-me! Follow @resteem-me and get increasing your chance of being upvoted again!

Read more about @resteem-me.

  ·  7 years ago (edited)

Great
follow me and upvote @money-dreamer
thanks regards

You just hit the nail on the head, great post my Mentor

Thank you for an excellent useful detailed post!

Following, upvote, comment with appreciation from @share4angels😇