VimHelpBot icon indicating copy to clipboard operation
VimHelpBot copied to clipboard

Bot comments should be deleted when its parent is deleted

Open rnevius opened this issue 5 years ago • 1 comments

Describe the bug

If VimHelpBot's parent comment is deleted, VimHelpBot's comment should self-destruct.

To Reproduce

Write a comment with :help help. Delete the comment after VimHelpBot replies.

Expected behavior

Deleting a user comment should also result in VimHelpBot's comment being removed.

Screenshots

image

Additional context

https://www.reddit.com/r/vim/comments/gv52h0/is_it_possible_to_create_temporary_keybindings/fsmgu1d/

rnevius avatar Jun 02 '20 11:06 rnevius

Hmm. I do not know if Praw lets me know when a comment has been deleted or not. There are two ways I can think of -

  1. Periodically check if each replied comment is deleted or not. But as the number of replied comments grows this will be troublesome.
  2. Show a link on each post which can only be triggered by the author of the comment that will delete the bot's comment.

I'll keep this open in case I find a way or someone can help.

heraldofsolace avatar Jun 02 '20 12:06 heraldofsolace