Viewing a response to: @sambillingham/tutorial-beginner-friendly-build-your-first-steem-bot-in-javascript-30minutes
For this particular version of js file can you post the code for post comments? <code> var parentAuthor = 'author1'; var parentPermlink = 'permlink; var commentPermlink = steem.formatter.commentPermlink(parentAuthor, parentPermlink); var postTitle = WELCOME_COMMENT_TITLE; var postBody = WELCOME_COMMENT_BODY; steem.broadcast.comment(ACCOUNT_WIF, parentAuthor, parentPermlink, ACCOUNT_NAME, commentPermlink, postTitle, postBody, {"tags":["tag1"]}, function(err, result) { console.log(result); }); </code> The above code doesn't seem to work and the version specific changes are not documented well enough I think.
author | gokulnk |
---|---|
permlink | re-sambillingham-tutorial-beginner-friendly-build-your-first-steem-bot-in-javascript-30minutes-20180120t222616121z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"} |
created | 2018-01-20 22:26:18 |
last_update | 2018-01-20 22:26:18 |
depth | 1 |
children | 6 |
last_payout | 2018-01-27 22:26:18 |
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 | 675 |
author_reputation | 17,871,219,215,380 |
root_title | "TUTORIAL - Beginner friendly - Build your first steem bot in Javascript - 30minutes " |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 30,964,951 |
net_rshares | 0 |
Hey @gokulnk, can you be a little more clear so I can help you out? - Where is this code from? (it's not this tutorial) - What do you mean by 'code doesn't work' - what error messages are you getting, what is happening? - What are you wanting to do? - Can you post your full code somewhere?
author | sambillingham |
---|---|
permlink | re-gokulnk-re-sambillingham-tutorial-beginner-friendly-build-your-first-steem-bot-in-javascript-30minutes-20180121t220727720z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["gokulnk"],"app":"steemit/0.1"} |
created | 2018-01-21 22:07:24 |
last_update | 2018-01-21 22:07:24 |
depth | 2 |
children | 5 |
last_payout | 2018-01-28 22:07:24 |
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 | 292 |
author_reputation | 34,876,406,478,004 |
root_title | "TUTORIAL - Beginner friendly - Build your first steem bot in Javascript - 30minutes " |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,210,096 |
net_rshares | 0 |
The code you have given in your sample works perfectly. I was just trying to build on it to add comments to a post. I keep getting the following error. ``` "Expected version 128, instead got 149" ``` Please let me know if you were able to post comments through the code.
author | gokulnk |
---|---|
permlink | re-sambillingham-re-gokulnk-re-sambillingham-tutorial-beginner-friendly-build-your-first-steem-bot-in-javascript-30minutes-20180122t145010549z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-01-22 14:50:18 |
last_update | 2018-01-22 14:50:18 |
depth | 3 |
children | 4 |
last_payout | 2018-01-29 14:50:18 |
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 | 277 |
author_reputation | 17,871,219,215,380 |
root_title | "TUTORIAL - Beginner friendly - Build your first steem bot in Javascript - 30minutes " |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,401,800 |
net_rshares | 0 |
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
author | sambillingham |
---|---|
permlink | re-gokulnk-re-sambillingham-re-gokulnk-re-sambillingham-tutorial-beginner-friendly-build-your-first-steem-bot-in-javascript-30minutes-20180122t203222385z |
category | utopian-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"} |
created | 2018-01-22 20:32:21 |
last_update | 2018-01-22 20:32:21 |
depth | 4 |
children | 3 |
last_payout | 2018-01-29 20:32:21 |
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 | 301 |
author_reputation | 34,876,406,478,004 |
root_title | "TUTORIAL - Beginner friendly - Build your first steem bot in Javascript - 30minutes " |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 31,471,381 |
net_rshares | 0 |