I respect the effort you put into this, but I'd think this would be more appropriate as a feature integrated into Lemmy itself.
I understand adding features to Lemmy itself takes time and more effort and this is the best compromise we have right now, but having people constantly tagging bots and bots replying to them are kinda annoying, and that's one of the things I hated Reddit for.
Would it be possible for you to make it so the bot replies to the person in their DMs, not as a comment to the person in the post? It'd get rid of at least some of the bot clutter.