create account

RE: [KnackSteem API] - Delegators tokens distribution bot + Curation bot (voting + commenting + KNT distribution) by justyy

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @jaysermendez/knacksteem-api-delegators-tokens-distribution-bot-curation-bot-voting-commenting-knt-distribution

· @justyy ·
$10.30
Thank you very much for your contribution @jaysermendez ! 

1. it might be better to have delegations data obtained from blockchain instead of being hard-coded in `delegations.json`. This does not need to be at real time - I think you can do this in a separate process running at background periodically. Or, you can use @steemsql
2. IMHO, i am not a big fan of posting templated comments on blockchain. It is kinda of spam - and it costs RC. You might want to introduce mechanisim to control the frequency of posting.
3. Do you really want to check-in the `yarn.lock` according to [this](https://github.com/yarnpkg/yarn/issues/838)?



Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2-2-2-2-2-1-1-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
👍  , , , , , , , , , , , , , , , , , ,
properties (23)
authorjustyy
permlinkre-jaysermendez-knacksteem-api-delegators-tokens-distribution-bot-curation-bot-voting-commenting-knt-distribution-20190128t080401723z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["jaysermendez","steemsql"],"links":["https://github.com/yarnpkg/yarn/issues/838","https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2-2-2-2-2-1-1-","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2019-01-28 08:04:03
last_update2019-01-28 08:04:03
depth1
children5
last_payout2019-02-04 08:04:03
cashout_time1969-12-31 23:59:59
total_payout_value7.796 HBD
curator_payout_value2.500 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,085
author_reputation280,616,224,641,976
root_title"[KnackSteem API] - Delegators tokens distribution bot + Curation bot (voting + commenting + KNT distribution)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,048,807
net_rshares20,679,868,337,254
author_curate_reward""
vote details (19)
@jaysermendez ·
Hello @justyy,

Thanks for the suggestions. I didn't realize about the yarn.lock being committed. Will surely remove it.

Regarding delegations.json, this is not hardcoded. It is served as a baseline for seeding purposes and it is patched with deltas thereafter. Before each distribution, it is patched with the latest data.

Regarding the comment template, @knowledges what do you think?
properties (22)
authorjaysermendez
permlinkre-justyy-re-jaysermendez-knacksteem-api-delegators-tokens-distribution-bot-curation-bot-voting-commenting-knt-distribution-20190128t080803778z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["justyy","knowledges"],"app":"steemit/0.1"}
created2019-01-28 08:08:03
last_update2019-01-28 08:08:03
depth2
children0
last_payout2019-02-04 08:08:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length388
author_reputation20,790,862,502,465
root_title"[KnackSteem API] - Delegators tokens distribution bot + Curation bot (voting + commenting + KNT distribution)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,048,917
net_rshares0
@jaysermendez ·
Here is the sync script :) https://github.com/knacksteem/knacksteem-api/blob/master/src/api/pollers/delegators.poller.js
properties (22)
authorjaysermendez
permlinkre-justyy-re-jaysermendez-knacksteem-api-delegators-tokens-distribution-bot-curation-bot-voting-commenting-knt-distribution-20190128t081749971z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://github.com/knacksteem/knacksteem-api/blob/master/src/api/pollers/delegators.poller.js"],"app":"steemit/0.1"}
created2019-01-28 08:17:51
last_update2019-01-28 08:17:51
depth2
children1
last_payout2019-02-04 08:17:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length120
author_reputation20,790,862,502,465
root_title"[KnackSteem API] - Delegators tokens distribution bot + Curation bot (voting + commenting + KNT distribution)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,049,202
net_rshares0
@justyy · (edited)
Thanks. In this case you might not want to check in this file ‘delegation.json’ as well. ;)

Posted using [Partiko iOS](https://steemit.com/@partiko-ios)
👍  , , , , , , , , ,
properties (23)
authorjustyy
permlinkjustyy-re-jaysermendez-re-justyy-re-jaysermendez-knacksteem-api-delegators-tokens-distribution-bot-curation-bot-voting-commenting-knt-distribution-20190128t095024575z
categoryutopian-io
json_metadata{"app":"partiko","client":"ios"}
created2019-01-28 09:50:24
last_update2019-01-28 09:50:48
depth3
children0
last_payout2019-02-04 09:50:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length153
author_reputation280,616,224,641,976
root_title"[KnackSteem API] - Delegators tokens distribution bot + Curation bot (voting + commenting + KNT distribution)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,051,772
net_rshares25,013,179,806
author_curate_reward""
vote details (10)
@knowledges ·
> I am not a big fan of posting templated comments on blockchain.

The comment is made under each approved and scored knacksteem post. Very similar to what Utopian and other similar projects on the blockchain does. I don't consider this as spamming.

As for the delegation.json, it may look hard-coded but its not. It serves only as a baseline for seeding as explained by @jaysermendez
properties (22)
authorknowledges
permlinkre-justyy-re-jaysermendez-knacksteem-api-delegators-tokens-distribution-bot-curation-bot-voting-commenting-knt-distribution-20190128t081715277z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["jaysermendez"],"app":"steemit/0.1"}
created2019-01-28 08:17:18
last_update2019-01-28 08:17:18
depth2
children0
last_payout2019-02-04 08:17:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length385
author_reputation98,021,227,622,369
root_title"[KnackSteem API] - Delegators tokens distribution bot + Curation bot (voting + commenting + KNT distribution)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,049,187
net_rshares0
@utopian-io ·
Thank you for your review, @justyy! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-jaysermendez-knacksteem-api-delegators-tokens-distribution-bot-curation-bot-voting-commenting-knt-distribution-20190128t080401723z-20190130t083334z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-01-30 08:33:36
last_update2019-01-30 08:33:36
depth2
children0
last_payout2019-02-06 08:33:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length58
author_reputation152,955,367,999,756
root_title"[KnackSteem API] - Delegators tokens distribution bot + Curation bot (voting + commenting + KNT distribution)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,152,138
net_rshares0