In a little over two months I'm hoping to pick up my old Silent Bob curation initiative again on #creativecoin. By that time three delegations of CCC will expire, and I will once again have some CCC voting power, that I'll be delegating to a little bot account : .
The code is just a quick and dirty piece of code right now. Lots of cleanup to do and some functionalities to add, including making the bot usable for other curation projects. I did put the code on github, together with a Dockerfile. Currently the bot does one thing. It watches the blockchain for comments made by curators that mention it.
The bot currently understands only one command, and only responds to configured curators (right now, that's just me). That command is the star command.
By giving the star command, posting a reply to a HIVE post like this:
@silentbot star 3
the bot is asked to do two things:
The upvote percentage is set according to the below table, depending on both the star count designated by the curator, and wether or not the HIVE post was done in 100% power-up mode:
| stars | 100% power up | 50%/50% |
|---|---|---|
| 1 | 5% | 1% |
| 2 | 20% | 10% |
| 3 | 45% | 25% |
| 4 | 60% | 50% |
| 5 | 100% | 90% |
The bot is run with at least one posting key (that of the right now) and with one or more additional posting keys, currently my main account
.
The old SilentBob code ran as a little private frontend written in Python 2 using the my own (now discontinued) old async steem python library combined with a beempy commandline tool. When I looked at Beempy, an oldfashioned synchonous python library I soon concluded it would be better to just make a simple bot. Then, trying to use beempy to actually do transactions, I ran into this problem. I couldn't figure out how to use beempy in a docker container without having to store my keys in some actual wallet file, what arguably is a bad idea when running in docker. So instead I ended up using lighthive by , a much leaner Python HIVE library that is a much better fit for this little bot.
I'm currently running the bot off and on on my desktop PC in docker using the following command line:
docker run -e SILENTBOT_WIF -e PIBARA_WIF -e SILENTBOT_DATA_DIR='/mnt' --mount type=bind,source="$(pwd)"/store,target=/mnt -it pibara/silentbot:alpha python /application/silentbot.py silentbot pibara
Where PIBARA_WIF and SILENTBOT_WIF are environment variables I've temporaraly set in my shell. This command lets the bot run commenting with the account and upvoting with both the
and the
account.
Most of the settings for the bot are currently taken from the file lookup.json, but not enough yet to make the bot 100% generic and usable for other curation initiatives. I'm hoping to fix this so others can use my code to run similar assistant bots.
When the bot is completely tested and has all the functionality it needs, I'll be moving the bot to my NAS.
Things I still need to fix before next February:
So there are still quite a few things to do, but not so much that it should be a problem getting them done before February.
A lot of great content in the #creativecoin #fiction / #poetry / #bookreview space, and my own knowledge of Spanish is minimal. So if anyone is interested in getting curator access to in order to curate the Spanish posts using these tags, please drop me a message. I'm especialy interested in joining forces with existing Spanish language curation in this space. Drop me a comment if you are interested.