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 useset_shared_steemd_instanceto 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.
.
Don't know enough Python but totally agree sometimes to clean up the mess takes a longer time than to redesign and rewrite the thing :-)
I agree, that it really is messy.
If you did a complete redesign, I'd like to plan ahead for some extra features.
I'll just wait for some more replies, to give others a chance - Hope that's ok.
.
Another feature of the bot ( which now runs as a separate script ) is to drop a comment under posts, when the author has used #deutsch for the first time.
To integrate that I'd need to get all blocks.
.
I understand, but ...
... I wanted both functions to broadcast to discord with the same bot ID :/
.
Hmm This sounds a pretty interesting, but the code seems to be missing something. I'm not sure what, just a feeling.
Cant help but like this idea! :) go for it !
a very good post
anyone who reads it will like it
I really like your posts
@muhammadkariman
nice
danke schön!
you are one of those people who are always grateful and patient. you deserve success in all areas.
Beautiful cute post so sweet