Skip to content

Commit

Permalink
'[[username]]' replaced with media owner's username when replying
Browse files Browse the repository at this point in the history
  • Loading branch information
danomaj authored and basnijholt committed Dec 13, 2019
1 parent 8027d0d commit 1078e20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions instabot/bot/bot_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def reply_to_comment(self, media_id, comment_text, parent_comment_id):
)
return False
self.delay("comment")
comment_text = comment_text.\
replace("[[username]]", self.get_username_from_user_id(self.get_media_owner(media_id)))
if comment_text[0] != "@":
msg = ("A reply must start with mention, so '@' must be the "
"1st char, followed by the username you're replying to")
Expand Down

0 comments on commit 1078e20

Please sign in to comment.