Introducing thanks - A "thanks" bot for STEEM witnesses to thank their voters after their vote

in #utopian-io6 years ago (edited)

The idea is not mine. After I cast a witness vote to @arcange, 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:"
}
OptionDescription
keysA list of keys. Only active wif is required.
nodesA list of nodes. api.steemit.com is preffered.
accountYour witness account
userlist_fileAbsolute path of A writable TEXT file
memoYour 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

Sort:  

It would be preferable if it would also pay those who have voted a long time ago. I guess you could start at the blockchain beginnings but that is very long. It is likely you could iterate over history of each witness user. Regular votes for posts are in that, so I imagine witness votes will be there too.

well, this is not actually a payment module since it just sends 0.001 SBD :) But it is possible to get my old voters, you can iterate over the account history but it will take a good amount of time if the account has a huge history.

Received that with thanks :)

I hope you have 850 SBD in your account:)
But nice idea!

Love it! Such a great idea and implementation!

When will you add the word ' [Witness] ' next to your discord name reis?

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @emrebeyler I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Received that with thanks :)

Nice, beautiful and informative. Keep sharing, great work!

Coin Marketplace

STEEM 0.36
TRX 0.12
JST 0.039
BTC 69735.97
ETH 3533.64
USDT 1.00
SBD 4.72