Distribubot update 0.4.1

in HiveDevs4 years ago

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.

Example

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

Great comment
!ENGAGE 15

The parent author is @account_a

Then the following happens:

This allows it to trail @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

Sort:  

Hi @holger80, you have received a small bonus upvote from MAXUV.
This is to inform you that you now have new MPATH tokens in your Hive-Engine wallet.
Please read this post for more information.
Thanks for being a member of both MAXUV and MPATH!

nice one! :)

Thank you for these updates Holger!

Someone who has at least 100 ENGAGE token

Is this a mis-type? 1000 ENGAGE would be the minimum I hope.

It's looking great though, cheers!

Congratulations @holger80! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

Your post got the highest payout of the week

You can view your badges on your board And compare to others on the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Support the HiveBuzz project. Vote for our proposal!

Thanks Holger - great to see more and more updates coming!

Thanks.for sharing. This bot to the community
.

Thanks for sharing!