## 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](https://github.com/fxnormaluser/steem-deutschbot) - 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.
author | felixxx |
---|---|
permlink | 125-steem-developer-bounty-inside-python |
category | steemdev |
json_metadata | {"tags":["steemdev","bounty","programming","utopianmyass","htid"],"users":["danielsaori","deutschbot","gtg"],"links":["https://github.com/E-D-A/steem-curatebot","https://github.com/fxnormaluser/steem-deutschbot"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-02-01 08:29:57 |
last_update | 2018-02-06 19:10:00 |
depth | 0 |
children | 15 |
last_payout | 2018-02-08 08:29:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 46.184 HBD |
curator_payout_value | 13.499 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,628 |
author_reputation | 216,289,007,274,068 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,076,513 |
net_rshares | 9,614,302,795,478 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
pharesim | 0 | 82,901,137,978 | 0.17% | ||
teamsteem | 0 | 597,641,848,301 | 5% | ||
juanmiguelsalas | 0 | 17,024,748,886 | 15% | ||
skapaneas | 0 | 66,115,072,113 | 51% | ||
redpalestino | 0 | 280,608,321,459 | 50% | ||
lrock | 0 | 201,124,079,068 | 100% | ||
jeffjagoe | 0 | 100,704,218,396 | 100% | ||
moon32walker | 0 | 114,942,082,472 | 20% | ||
ace108 | 0 | 251,227,465,441 | 25% | ||
shaka | 0 | 3,390,284,066,042 | 100% | ||
dumar022 | 0 | 44,681,633,451 | 63% | ||
twinner | 0 | 1,023,796,279,433 | 100% | ||
sc-steemit | 0 | 15,363,450,974 | 15% | ||
moisesmcardona | 0 | 1,336,153,553 | 1% | ||
englishtchrivy | 0 | 96,204,338,421 | 25% | ||
maarnio | 0 | 239,234,805,320 | 100% | ||
bitcoinparadise | 0 | 3,110,071,391 | 1% | ||
whatsup | 0 | 85,057,316,901 | 22% | ||
saamychristen | 0 | 28,334,747,782 | 50% | ||
smasher | 0 | 5,463,788,462 | 100% | ||
opmonis | 0 | 2,948,975,116 | 100% | ||
freiheit50 | 0 | 108,312,990,251 | 100% | ||
jamzed | 0 | 17,204,189,417 | 100% | ||
schererf | 0 | 127,025,643,129 | 100% | ||
poet | 0 | 26,031,982,759 | 100% | ||
orionvk | 0 | 22,588,694,730 | 20% | ||
jumowa | 0 | 31,116,837,620 | 25% | ||
alexvan | 0 | 13,817,719,165 | 20% | ||
afrog | 0 | 158,135,238,188 | 100% | ||
ripperone | 0 | 990,615,826,298 | 21% | ||
schamangerbert | 0 | 71,232,384,941 | 25% | ||
con-dom | 0 | 7,580,869,344 | 100% | ||
rcecelja2503 | 0 | 91,479,675 | 100% | ||
kam.ila | 0 | 185,576,036,852 | 100% | ||
danielsaori | 0 | 92,013,794,719 | 100% | ||
detlev | 0 | 5,447,771,425 | 10% | ||
velimir | 0 | 37,327,698,568 | 10% | ||
pipurilla | 0 | 5,821,381,291 | 20% | ||
roused | 0 | 55,386,678,802 | 100% | ||
thepe | 0 | 15,282,151,994 | 100% | ||
double-u | 0 | 477,889,272,249 | 99% | ||
jamjamfood | 0 | 2,762,214,223 | 25% | ||
novi | 0 | 537,541,585 | 100% | ||
geekgirl | 0 | 164,983,125,345 | 50% | ||
bronkong | 0 | 12,081,116,175 | 100% | ||
steem.test | 0 | 546,540,420 | 100% | ||
fadhilaceh | 0 | 844,019,488 | 100% | ||
alpha.steem | 0 | 546,540,420 | 100% | ||
crokkon | 0 | 22,011,521,673 | 100% | ||
quencore | 0 | 514,587,190 | 100% | ||
bobbyboe | 0 | 19,855,324,300 | 100% | ||
therealwolf | 0 | 196,553,423,509 | 100% | ||
resteemme | 0 | 546,540,420 | 100% | ||
helli | 0 | 551,560,326 | 100% | ||
nickelback | 0 | 617,466,819 | 100% | ||
eikejanssen | 0 | 24,362,748,271 | 50% | ||
james.steem | 0 | 546,542,890 | 100% | ||
mikenero | 0 | 42,422,326,718 | 30% | ||
player01 | 0 | 547,634,800 | 100% | ||
player02 | 0 | 547,634,800 | 100% | ||
resteemmebot | 0 | 547,634,800 | 100% | ||
player03 | 0 | 547,634,800 | 100% | ||
shamsa | 0 | 126,474,772 | 40% | ||
vikwaitforittor | 0 | 563,829,910 | 100% | ||
ramzi847 | 0 | 273,212,268 | 100% | ||
stekz42 | 0 | 1,229,146,592 | 100% | ||
fuchsfalke | 0 | 538,594,015 | 100% | ||
rilc0n | 0 | 3,906,020,914 | 100% | ||
maxpatternman | 0 | 1,534,343,710 | 100% | ||
idwar | 0 | 605,260,379 | 100% | ||
saifuelbahrie | 0 | 1,902,415,498 | 100% | ||
svenna | 0 | 561,001,170 | 100% | ||
wrpx | 0 | 298,400,032 | 100% | ||
hashkeks | 0 | 294,634,434 | 100% | ||
sybozz | 0 | 544,559,562 | 100% | ||
muschelschubser | 0 | 546,291,370 | 100% | ||
borju | 0 | 458,185,500 | 100% | ||
rivalzzz | 0 | 11,441,032,832 | 100% | ||
intansteemityes | 0 | 402,471,171 | 100% |
danke schΓΆn!
author | bobbyboe |
---|---|
permlink | re-felixxx-125-steem-developer-bounty-inside-python-20180202t235127755z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-02-02 23:51:27 |
last_update | 2018-02-02 23:51:27 |
depth | 1 |
children | 0 |
last_payout | 2018-02-09 23:51:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 12 |
author_reputation | 2,597,193,520,252 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,514,930 |
net_rshares | 0 |
hi @felixxx, The script looks like too messy to refactor. I can do a complete rewrite in 24 hours for a total 125 STEEM. What do you think about that? I am experienced w/ discord and steem api's.
author | emrebeyler |
---|---|
permlink | re-felixxx-125-steem-developer-bounty-inside-python-20180201t083925925z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"users":["felixxx"],"app":"steemit/0.1"} |
created | 2018-02-01 08:39:27 |
last_update | 2018-02-01 08:39:27 |
depth | 1 |
children | 7 |
last_payout | 2018-02-08 08:39:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.748 HBD |
curator_payout_value | 0.567 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 196 |
author_reputation | 448,535,049,068,622 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,078,341 |
net_rshares | 373,471,403,409 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ace108 | 0 | 13,957,081,413 | 1% | ||
felixxx | 0 | 342,628,974,949 | 100% | ||
crokkon | 0 | 10,825,338,527 | 50% | ||
turbot | 0 | 5,562,835,903 | 100% | ||
fuchsfalke | 0 | 497,172,617 | 100% |
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 :-)
author | ace108 |
---|---|
permlink | re-emrebeyler-re-felixxx-125-steem-developer-bounty-inside-python-20180201t091729382z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-02-01 09:17:30 |
last_update | 2018-02-01 09:17:30 |
depth | 2 |
children | 0 |
last_payout | 2018-02-08 09:17:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.570 HBD |
curator_payout_value | 0.521 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 136 |
author_reputation | 1,226,231,567,799,664 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,085,443 |
net_rshares | 336,918,492,033 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
felixxx | 0 | 336,918,492,033 | 100% |
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.
author | felixxx |
---|---|
permlink | re-emrebeyler-re-felixxx-125-steem-developer-bounty-inside-python-20180201t084506985z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-02-01 08:45:09 |
last_update | 2018-02-01 08:45:09 |
depth | 2 |
children | 5 |
last_payout | 2018-02-08 08:45:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 195 |
author_reputation | 216,289,007,274,068 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,079,469 |
net_rshares | 0 |
No problem. I have a couple of ideas: - Don't parse every block. Instead use get_account_history for each curator and filter only votes. Much more cleaner code and less overhead. This will remove almost half of the code. - Use mongodb to log already sent votes and [check](https://github.com/utopian-io/utopian.tip/blob/master/utopian_tip/utopian_tip.py#L86) from there. - Use supervisord to restart the bot if bot goes down. Fixing the main reason is the real solution however you can always use Supervisord to auto-restart the process. - Custom node settings are not valid on some internal classes of steem-python. There are a couple of pull requests waiting for approval about this issue but they didn't do that yet. Using get_account_history with a custom list of nodes working well though. So, this won't be a o problem. Let me know, if you decide for a rewrite. my Discord id: emre#9263.
author | emrebeyler |
---|---|
permlink | re-felixxx-re-emrebeyler-re-felixxx-125-steem-developer-bounty-inside-python-20180201t085732263z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"links":["https://github.com/utopian-io/utopian.tip/blob/master/utopian_tip/utopian_tip.py#L86"],"app":"steemit/0.1"} |
created | 2018-02-01 08:57:33 |
last_update | 2018-02-01 08:57:33 |
depth | 3 |
children | 4 |
last_payout | 2018-02-08 08:57:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 2.244 HBD |
curator_payout_value | 0.070 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 901 |
author_reputation | 448,535,049,068,622 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,081,773 |
net_rshares | 373,295,077,721 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
felixxx | 0 | 367,374,400,917 | 100% | ||
turbot | 0 | 5,432,711,087 | 100% | ||
fuchsfalke | 0 | 487,965,717 | 100% |
Hmm This sounds a pretty interesting, but the code seems to be missing something. I'm not sure what, just a feeling.
author | ethanthefighter |
---|---|
permlink | re-felixxx-125-steem-developer-bounty-inside-python-20180206t222602210z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-02-06 22:24:36 |
last_update | 2018-02-06 22:24:36 |
depth | 1 |
children | 0 |
last_payout | 2018-02-13 22:24:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.022 HBD |
curator_payout_value | 0.003 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 116 |
author_reputation | 2,674,103,331,455 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 35,508,409 |
net_rshares | 4,544,723,220 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ethanthefighter | 0 | 4,544,723,220 | 100% |
nice
author | jakboy |
---|---|
permlink | re-felixxx-125-steem-developer-bounty-inside-python-20180202t105148398z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-02-02 10:51:45 |
last_update | 2018-02-02 10:51:45 |
depth | 1 |
children | 0 |
last_payout | 2018-02-09 10:51:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 4 |
author_reputation | 45,413,276,305 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,371,052 |
net_rshares | 0 |
a very good post anyone who reads it will like it I really like your posts @muhammadkariman
author | muhammadkariman |
---|---|
permlink | re-felixxx-125-steem-developer-bounty-inside-python-20180201t175801105z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"users":["muhammadkariman"],"app":"steemit/0.1"} |
created | 2018-02-01 17:58:09 |
last_update | 2018-02-01 17:58:09 |
depth | 1 |
children | 0 |
last_payout | 2018-02-08 17:58:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 91 |
author_reputation | 4,766,909,247 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,189,101 |
net_rshares | 0 |
author | shamsa | ||||||
---|---|---|---|---|---|---|---|
permlink | re-felixxx-201821t133511778z | ||||||
category | steemdev | ||||||
json_metadata | {"tags":["steemdev","bounty","programming","utopianmyass","htid"],"app":"esteem/1.5.0","format":"markdown+html","community":"esteem"} | ||||||
created | 2018-02-01 08:35:15 | ||||||
last_update | 2018-02-01 08:35:15 | ||||||
depth | 1 | ||||||
children | 0 | ||||||
last_payout | 2018-02-08 08:35:15 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 0.000 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 28 | ||||||
author_reputation | 415,671,106,747 | ||||||
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 34,077,542 | ||||||
net_rshares | -352,814,582,318 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
felixxx | 0 | -354,049,940,781 | -100% | ||
lovesteem | 0 | 1,235,358,463 | 100% |
Cant help but like this idea! :) go for it !
author | stekz42 |
---|---|
permlink | re-felixxx-125-steem-developer-bounty-inside-python-20180201t103136807z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-02-01 10:31:36 |
last_update | 2018-02-01 10:31:36 |
depth | 1 |
children | 0 |
last_payout | 2018-02-08 10:31:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 44 |
author_reputation | 88,531,253,469 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,099,411 |
net_rshares | 0 |
you are one of those people who are always grateful and patient. you deserve success in all areas.
author | yogaunimal |
---|---|
permlink | re-felixxx-125-steem-developer-bounty-inside-python-20180203t042035490z |
category | steemdev |
json_metadata | {"tags":["steemdev"],"app":"steemit/0.1"} |
created | 2018-02-03 04:20:42 |
last_update | 2018-02-03 04:20:42 |
depth | 1 |
children | 0 |
last_payout | 2018-02-10 04:20:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 98 |
author_reputation | 532,190,094,714 |
root_title | "CLOSED: 125 STEEM Developer Bounty Inside [Python]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 34,555,231 |
net_rshares | 0 |