How to Resteem a post automatically based on #hashtag

in #school β€’ 3 years ago

It's for School of Minnnows 🐠🐠🐠🐠🐠 #school-of-minnows

We can Resteem posts to our profiles based on #hashtags then there is also option to provide a comment on the resteemed post afterwards.

Anyone is welcome to use it, works off of Node.js here is our github for it:

https://github.com/breadcrumbsofzion/resteem

Check Rog🐴 we on github now 😁

Will upload the rest of code base this month. All your base belong to us.

What are good #hashtags to resteem/ reblog / repost / forward for Breadcrumbs?

Curiosity has value of its own😺, how do we create the value of curiosity to engage and create feedback loops with the coolcats out there?

@upvoteandresteem we using for testing and social blockchain experiments.

Haven't written any text for @schoolofminnows,

🐠🐠🐠🐠🐠🐠🐠🐠

it's a linky fish not a fishy link.

https://steemit.com/hive-129948/@tangera/4emhv1-2022

(check the 1st comment)

Here is the output:

Your post was upvoted and resteemed on @upvoteandresteem


<a href="https://steemit.com/@schoolofsteem%22%3E🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠

the .json input:

"comment": "Your post was upvoted and resteemed on @upvoteandresteem


\n ###### 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠 🐠"

Check Line 21:

https://github.com/breadcrumbsofzion/resteem/blob/main/resteemer.json

it's listening to the Steemit blockchain for #hashtags that are posts not comments if (result[0] == 'comment') {

Line 98:

https://github.com/breadcrumbsofzion/resteem/blob/main/resteemer.js

Once if finds a post on the blockchain it checks the body out, it pulls the hashtags set in the json file, it searches the body for any of those #hashtags, then it reblogs the post reblog(author1, permlink1);

We can mod it and erase all of that and resteem just by author AKA @username

above example would resteem if the author was @schoolofsteem


https://github.com/breadcrumbsofzion/resteem/blob/main/resteemer.json

lets go through the .json config slowly, syntax is most important but you can replace and edit without knowing the syntax if you stay between the lines and don't use anything other than letters and numbers.

`"account": "your account or the account you are storing this value with"

"posting_key": "POST PRIVATE KEY FOR ACCOUNT GOES HERE",

"tags": ["hashtag1", "hashtag2", "hashtag3", "resteem", "any", "of", "theses", "tags"],

"blacklist": ["cancel", "resteem", "on",],

"voting_percentage": how much upvote %? 4200 is 42%, 10000 = 100% upvote

"blacklist_tags": ["cancel", "resteem", "if", "any", "of", "these", "tags"],

"interval": 61, (not too sure what this is honestly, can't find it in steemit API nor the .js file)

"comment": "Comments to write on Resteemed post go here, @breadcrumzofzion gave you some bread🍞"`

in the future, everyone will need to know how to do a little bit of code like this, it will become like reading and writing and knowing how to use a device is now.

Coding will become part of linguistic in the 21st Century, part of reading and writing is language, code is a universal language.

if not programming at least knowing how to modify a .json file.

like this one for the resteemer

We will do a $HIVE equivalent in the near future.

#schoolofsteem #resteem #steem #education #steemeducation #nodejs #json

Sort: Β 

Congratulations @breadcrumzofzion! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

You distributed more than 700 upvotes.
Your next target is to reach 800 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out the last post from @hivebuzz:

Hive Power Up Month - Feedback from February day 15
Support the HiveBuzz project. Vote for our proposal!

Yes. understood @pfunk, nothing $TEEM related on $HIVE is a nono.
πŸ’ #baboon have bread 🍞 for you

Yes. understood @pfunk, nothing $TEEM related on $HIVE is a nono.
πŸ’ #baboons have bread 🍞 for you