Hey @sirwinchester your @wang-style comment bot has a bug by felixxx

View this thread on steempeak.com
· @felixxx · (edited)
$36.80
Hey @sirwinchester your @wang-style comment bot has a bug
I had the same issue of double answers. It happens, when people edit their post.
(I just made a similar bot for introducing people under the deutsch tag.)

https://steemit.com/@sirwinchester/comments

http://i.imgur.com/2yTA6E9.png

## I fixed my bot like this:

(It's piston based)


    already_commented = []

    if not newbie in already_commented: 

       introduction_post.reply(body=welcome author="sirwinchester")

       already_commented.append(newbie)
<br>
I hope, I could be of help.

But please remember what happened to @wang ;)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 45 others
properties (23)
post_id2,752,686
authorfelixxx
permlinkhey-sirwinchester-your-wang-style-comment-bot-has-a-bug
categorysteemdev
json_metadata"{"format": "markdown", "links": ["https://steemit.com/@sirwinchester/comments"], "app": "steemit/0.1", "tags": ["steemdev", "bothelp"], "users": ["wang"], "image": ["http://i.imgur.com/2yTA6E9.png"]}"
created2017-05-15 18:38:15
last_update2017-05-15 18:39:36
depth0
children6
net_rshares7,959,798,628,738
last_payout2017-05-22 18:38:15
cashout_time1969-12-31 23:59:59
total_payout_value30.303 SBD
curator_payout_value6.494 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length543
author_reputation66,238,594,869,311
root_title"Hey @sirwinchester your @wang-style comment bot has a bug"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (109)
@sirwinchester · (edited)
$0.02
Thanks for your advice - good to know.
I thought it would be beneficial if I welcome the new steemians and put my steem power to good use to upvote them!
👍  
properties (23)
post_id2,752,875
authorsirwinchester
permlinkre-felixxx-hey-sirwinchester-your-wang-style-comment-bot-has-a-bug-20170515t184230731z
categorysteemdev
json_metadata"{"app": "steemit/0.1", "tags": ["steemdev"]}"
created2017-05-15 18:42:30
last_update2017-05-15 18:42:54
depth1
children1
net_rshares15,460,427,357
last_payout2017-05-22 18:42:30
cashout_time1969-12-31 23:59:59
total_payout_value0.023 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length153
author_reputation398,107,170,553,498
root_title"Hey @sirwinchester your @wang-style comment bot has a bug"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@felixxx ·
Very noble.
properties (22)
post_id2,752,921
authorfelixxx
permlinkre-sirwinchester-re-felixxx-hey-sirwinchester-your-wang-style-comment-bot-has-a-bug-20170515t184331076z
categorysteemdev
json_metadata"{"app": "steemit/0.1", "tags": ["steemdev"]}"
created2017-05-15 18:43:30
last_update2017-05-15 18:43:30
depth2
children0
net_rshares0
last_payout2017-05-22 18:43:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length11
author_reputation66,238,594,869,311
root_title"Hey @sirwinchester your @wang-style comment bot has a bug"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@cryptofunk ·
Hey @felixxx how do you scan through the tags,  there only seems to be comment.category with one tag, say if I want to find something in the 2nd, 3rd, 4th, 5th tag?
properties (22)
post_id2,809,572
authorcryptofunk
permlinkre-felixxx-hey-sirwinchester-your-wang-style-comment-bot-has-a-bug-20170517t184538540z
categorysteemdev
json_metadata"{"app": "steemit/0.1", "users": ["felixxx"], "tags": ["steemdev"]}"
created2017-05-17 18:45:42
last_update2017-05-17 18:45:42
depth1
children3
net_rshares0
last_payout2017-05-24 18:45:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length164
author_reputation21,989,847,737,535
root_title"Hey @sirwinchester your @wang-style comment bot has a bug"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@felixxx · (edited)
This includes the category, too:

    tags = (post["json_metadata"].get("tags", []))

It will give you a list.
👍  
properties (23)
post_id2,809,617
authorfelixxx
permlinkre-cryptofunk-re-felixxx-hey-sirwinchester-your-wang-style-comment-bot-has-a-bug-20170517t184716039z
categorysteemdev
json_metadata"{"app": "steemit/0.1", "tags": ["steemdev"]}"
created2017-05-17 18:47:15
last_update2017-05-17 18:47:39
depth2
children2
net_rshares5,138,384,018
last_payout2017-05-24 18:47:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length110
author_reputation66,238,594,869,311
root_title"Hey @sirwinchester your @wang-style comment bot has a bug"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@cryptofunk ·
Excellent thanks a lot! You are the Python guru
properties (22)
post_id2,810,938
authorcryptofunk
permlinkre-felixxx-re-cryptofunk-re-felixxx-hey-sirwinchester-your-wang-style-comment-bot-has-a-bug-20170517t193927363z
categorysteemdev
json_metadata"{"app": "steemit/0.1", "tags": ["steemdev"]}"
created2017-05-17 19:39:27
last_update2017-05-17 19:39:27
depth3
children1
net_rshares0
last_payout2017-05-24 19:39:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length47
author_reputation21,989,847,737,535
root_title"Hey @sirwinchester your @wang-style comment bot has a bug"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000