The idea is not mine. After I cast a witness vote to , I got an instant micro transfer from him with this memo.
I have liked the idea and implemented the bot of it.
Workflow
- Listen new blocks to the forever
- Filter "account_witness_vote" transactions
- Filter if the "witness" is yourself
- Send the voter a micro-transfer like the above.
Of course, bot has a mechanism to check the voter is trying to game the bot. One micro-transaction per user, no matter what.
Installation
(sudo) pip install steem_thanks
All set. Make sure your pip actually points to python3.6. Virtual environments are preferred.
Configuration
Bot works with a config file formatted as json.
Example configuration file (config.json)
{
"keys": ["active_key"],
"nodes": ["https://api.steemit.com"],
"account": "your_account",
"userlist_file": "/path/to/user_list.txt",
"memo": "Thank you for the witness vote. :hugging_face:"
}
| Option | Description |
|---|---|
| keys | A list of keys. Only active wif is required. |
| nodes | A list of nodes. api.steemit.com is preffered. |
| account | Your witness account |
| userlist_file | Absolute path of A writable TEXT file |
| memo | Your text of appreciation. Emojis are supported. |
Note: userlist_file is a text file where every voter registered once. It's a defense mechanism to people try to game the system by sending millions of approval/disapproval transactions.
Running
$ thanks /path/to/config.json
See it in action (Free hugs!)
Tech Stack
Python3.6+
Roadmap
It does one thing and doing it well. :) There is no readmap set at the moment. Maybe farewell after witness disapproval?
How to contribute?
Via Github pull requests and Github issues. If you have any questions or ideas, you can also find my at Discord. (emrebeyler#9263)
Posted on Utopian.io - Rewarding Open Source Contributors