CLOSED: 125 STEEM Developer Bounty Inside [Python]

NOTE: THIS BOUNTY IS TAKEN SINCE BLOCK 19640323

The other day, I found this bot:

https://github.com/E-D-A/steem-curatebot

by @danielsaori

Yesterday, I forked the code and converted it to do @deutschbot's job:

https://github.com/fxnormaluser/steem-deutschbot

This is what it does:

Steem deutschbot is a fork of:

https://github.com/E-D-A/steem-curatebot

Steemit curation bot with Discord integration.

The bot will login to Discord and starts to listen to the blockchain in the background.

It holds a list of 'trusted curators' for a certain hashtag on Steem. (#deutsch)

It streams all votes of the 'trusted curators' and their vote_weight and calculates a score for each post.

If a certain threshold is reached, the bot will vote for a post and broadcast its vote to Discord.

Commands:

$blacklist STEEMUSER
$curator STEEMUSER
$set_threshold 10000 (= 100% vote_weigh)
( leave argument blank to return a list )

The script works and does that job;
It's not nice code, at all:

  • it crashes unexpectedly ( 25 Steem )
  • it makes too many API calls ( @gtg will not like it ) ( 25 Steem )
    Perhaps, parsing the stream to a local db would be a solution ...
  • ... the db system is awful ( 25 Steem )
  • I have to initialize the Steem() Object at different points in the code for it to work and I don't exactly understand why. ( 25 Steem )
  • Optional:
    I have to use set_shared_steemd_instance to manually override which nodes Steem-Python connects to.
    This would need to be fixed in the official repository. ( 25 Steem )

If you can fix or upgrade my code, feel free to do so.

If you can fix one or more of the issues mentioned above, I will reward you in Steem;

125 Steem in total*

This bounty ends, when the payout-period of this post ends.

  • Make a pull request on github
  • Comment and link your PR under this post

Of course, your code has to work.

In case of multiple entries, I will try to pick the smartest solution.
However, if your solution works, you will probably win a price, anyways.

It took me a whole day to come up with the new deutschbot.py.
I figured, it would take a skilled programmer another day to clean up my mess.

Therefore, I hope 75 - 125 STEEM is enough.


*Disclaimer:

I will simultaneously work on the code, too.
If I find the best solution myself, I reserve the right to keep some of the bounty.
Furthermore, if no valid entries are made, I will keep the bounty for a later try.


Feel free to contact me here or in Discord, if you have any questions.

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center