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

Coin Marketplace

STEEM 0.18
TRX 0.15
JST 0.029
BTC 61963.30
ETH 2416.68
USDT 1.00
SBD 2.67