Distribubot update 0.4.1

Words
340
Reading
2 min
Listen
Play
6y

You can find the source code on github. I pushed the newest version also to pypi. Here you can also find my first post about distribubot.

Installation

pip3 install distribubot -U

Edit the config.json and add the active key to beempy:

beempy createwallet
beempy addkey

the bot can then be started by

distribubot /path/to/config.json --datadir=/writeable_datadir/

The data file is stored at /writeable_datadir.

Changelog 0.4.1

Distribubot has now two new config parameters:

  • scale_upvote_weight: boolean, when set to true, the upvote weight is scaled by the sent token
  • upvote_token_receiver: boolean, when set to true, the token receiver is upvoted.

Upvoting to signal that the command was accepted

When usage_upvote_percentage is set to a value > 0, a upvote is done by the token_account account. This signals that the command was accepted and prevents also double token sending.

The maximum vote weight is set by usage_upvote_percentage. The upvote weight can also be scaled by the amount of sent token when scale_upvote_weight is set to true.

When upvote_token_receiver is set to true, the token receiver comment is upvoted. Otherwise the command writer is upvoted.

ENAGE token: upvoting the token receiver

The parameter for the ENAGE token have been changed to:

"usage_upvote_percentage": 100,
"scale_upvote_weight": true,
"upvote_token_receiver": true

Someone who has at least 100 ENGAGE token, is able to distribute ENGAGE token by writing a comment with the !ENGAGE command followed by the token amount (maximum 100).
Whenever a new comment with the command and a token amount is broadcasted, the parent author receives the token and is now also upvoted by misterengagement@misterengagement.

Example

Someone who owns 100 ENAGE token replies to a comment with:

Great comment
!ENGAGE 15

The parent author is account@account_a

Then the following happens:

This allows it to trail misterengagement@misterengagement votes so that not only ENGAGE token can be sent to the comment writer but also some small upvotes.


If you like what I do, consider casting a vote for me as witness on Hivesigner or on PeakD

Distribubot update 0.4.1 | Ecency