Motivation
I was corresponding about ideas with @sambillingham one day when the idea of adding exif data to posts came up.
I decided to take it a step further into the realm of blockchain spiders, and I created a bot that spiders the blockchain for EXIF information. It then upvotes the post/comment it finds the EXIF information on and leaves the EXIF information in a comment.
Requirements
- Docker Everything is self-contained within a docker image.
Usage
docker run --rm -e STEEM_NAME=$STEEM_NAME -e STEEM_WIF=$STEEM_WIF -e VOTING_WEIGHT=500 r351574nc3/steem-exif-spider-bot:latest
Implementation
This was implemented using javascript and the following modules:
steem-js
steem apibluebird
promisesexifreader
reading exif datahandlebars
for the comment template
The bot sieves through transactions from steem.api.streamOperations
. It looks for Image
property of json_metadata
. If it finds any, this image is processed and pruned in exifreader
. Once tags have been parsed, they're reprocessed through handlebars
to create a comment body. The comment body is then reposted to the original post with an upvote.
Roadmap
- Convert to Typescript
- Add UI for configuration
- Add queue for commenting/voting
- Configurable/more selective about EXIF data
- Find older posts.
Contributing
Posted on Utopian.io - Rewarding Open Source Contributors