create account

RE: TUTORIAL - Beginner friendly - Build your first steem bot in Javascript - 30minutes by sambillingham

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

Viewing a response to: @gokulnk/re-sambillingham-re-gokulnk-re-sambillingham-tutorial-beginner-friendly-build-your-first-steem-bot-in-javascript-30minutes-20180122t145010549z

· @sambillingham ·
okay thanks for clarifying, it's 100% possible to send comments through code.

See this broadcast function - https://github.com/code-with-sam/steem-versary-bot/blob/master/bot.js#L183

notice the operations array on line 150 - https://github.com/code-with-sam/steem-versary-bot/blob/master/bot.js#L150
properties (22)
authorsambillingham
permlinkre-gokulnk-re-sambillingham-re-gokulnk-re-sambillingham-tutorial-beginner-friendly-build-your-first-steem-bot-in-javascript-30minutes-20180122t203222385z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://github.com/code-with-sam/steem-versary-bot/blob/master/bot.js#L183","https://github.com/code-with-sam/steem-versary-bot/blob/master/bot.js#L150"],"app":"steemit/0.1"}
created2018-01-22 20:32:21
last_update2018-01-22 20:32:21
depth4
children3
last_payout2018-01-29 20:32:21
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_length301
author_reputation34,876,406,478,004
root_title"TUTORIAL - Beginner friendly - Build your first steem bot in Javascript - 30minutes "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,471,381
net_rshares0
@gokulnk ·
Looks like I am having issues with all the broadcast functions. stream functions are working fine though. 

Let me know if we can discuss this in steemchat.
properties (22)
authorgokulnk
permlinkre-sambillingham-re-gokulnk-re-sambillingham-re-gokulnk-re-sambillingham-tutorial-beginner-friendly-build-your-first-steem-bot-in-javascript-30minutes-20180122t212403673z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-01-22 21:24:06
last_update2018-01-22 21:24:06
depth5
children2
last_payout2018-01-29 21:24:06
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_length156
author_reputation17,871,219,215,380
root_title"TUTORIAL - Beginner friendly - Build your first steem bot in Javascript - 30minutes "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,481,196
net_rshares0
@sambillingham ·
perhaps you are trying to do ```steem.api.broadcast()``` when it should be ```steem.broadcast()``` ? 

Also check you're not redefining ```steem``` anywhere?

p.s post your full code as a gist!
properties (22)
authorsambillingham
permlinkre-gokulnk-re-sambillingham-re-gokulnk-re-sambillingham-re-gokulnk-re-sambillingham-tutorial-beginner-friendly-build-your-first-steem-bot-in-javascript-30minutes-20180122t212613969z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-01-22 21:26:15
last_update2018-01-22 21:26:15
depth6
children1
last_payout2018-01-29 21:26:15
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_length193
author_reputation34,876,406,478,004
root_title"TUTORIAL - Beginner friendly - Build your first steem bot in Javascript - 30minutes "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,481,639
net_rshares0
@gokulnk ·
For ACCOUNT_WIF I was using the actual password and not the posting key. After changing that it is working well. Since it was WIF related issue other calls were working and only those where WIF was involved were throwing the error. 

I wish the message was little more verbose. It could have saved me a lot of time :P

Thanks for your inputs.
properties (22)
authorgokulnk
permlinkre-sambillingham-re-gokulnk-re-sambillingham-re-gokulnk-re-sambillingham-re-gokulnk-re-sambillingham-tutorial-beginner-friendly-build-your-first-steem-bot-in-javascript-30minutes-20180123t133118141z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-01-23 13:31:21
last_update2018-01-23 13:31:21
depth7
children0
last_payout2018-01-30 13:31:21
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_length342
author_reputation17,871,219,215,380
root_title"TUTORIAL - Beginner friendly - Build your first steem bot in Javascript - 30minutes "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id31,649,721
net_rshares0