RE: I hereby own the souls of the @iflagtrash bot operators!
O.K., here is the sample code by @holger80 attached at the bottom that makes the comment. This is the file we need to run over and over again, (for starters) lol. This is all you need to get running first.
First step is for youth make sure you can run this simple python file from your terminal or server. If you need help setting up I got to figure out some way to get in contact. Possibly steemit chat me @coininstant and I will send you my email address. It should be real simple.
Here is how I install beem on my mac, not sure if your using Mac or PC?
Follow this tutorial post to get going.
brew cask install anaconda
nano ~/.zshrc
Nano is a text editor, copy this line below into your .zshrc file then use source to activate the changes:
export PATH="/usr/local/anaconda3/bin:$PATH"
source ~/.zshrc
conda --version
conda 4.6.11
brew install openssl
pip install beem
2019-06-07 20:58:18 ☆ nickademous in ~
± |master ↑1 ↓2 S:387 U:367 ?:474 ✗| → python
Python 3.7.3 (default, Mar 27 2019, 16:54:48)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
Here is the tutorial
screenshots:
if name == "main": https://steemit.com/steem/@holger80/how-to-reply-to-a-post-using-beem
#!/usr/bin/python
from beem import Steem
from beem.comment import Comment
import getpass
wif = getpass.getpass(prompt='Enter your posting key.')
stm = Steem(node="https://api.steem.house", keys=[wif])
author = "holger80"
authorperm = "@emrebeyler/how-to-create-a-post-with-the-current-state"
with open('reply_body.md') as f:
body = f.read()
c = Comment(authorperm, steem_instance=stm)
c.reply(body, author=author)
First step get the base working, next open your cron table
chmod u+x /path/to/script.py
crontab -e
add cron entry: */10**** /path/to/script.py