RE: @helpbot Now Incentivizing Users Who Provide Accurate Answers + Good Questions!

You are viewing a single comment's thread from:

@helpbot Now Incentivizing Users Who Provide Accurate Answers + Good Questions!

in helpbot •  8 years ago 

@helpbot How can I write a bot?

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:  

How can I write a bot?


I am still learning and have no automatic response to your inquiry yet.
This question has been added to the @helpbot comment trail.
If you happen to know the answer to this question reply to this comment with it.
FYI Correct & accruate answers are rewarded! ;)
Learn more about the helpbot...

  ·  8 years ago (edited)

Upvote bot in less than 10 lines of code

from piston.steem import Steem
import os
import json
steem = Steem(wif=os.environ["WIF"])
authors = json.loads(os.environ["AUTHORS"])
for c in steem.stream_comments():
    if c["author"] in authors:
        print(c.upvote())

export WIF="wif Posting KEY" AUTHORS='["xeroc", "blueorgy", "ned", "arhag"]'

Note

This currently requries that you install the python-steem library as well as piston from the development branch.

Source By @xeroc