fmhall / Petrosian-Bot

Bot that comments Petrosian pasta
149 stars 14 forks source link

[Bug] Replying to bot can trigger it again #4

Closed davidmikan closed 1 year ago

davidmikan commented 3 years ago

If one replies to the bots pasta, if the reply contains any keywords, it triggers again, and it even does so if the user replying to the bots comment is the one that triggered that comment in the first place. This happened for instance in this interaction:

If you agree that this should be fixed, I would submit a pull request (3 lines of code) that prevents the bot from triggering if the original commenter replies to it's pasta.

fmhall commented 1 year ago

Resolved in #5