AutoModerator replied to me saying I have no flair. That message contained "thank you" which prompts me to reply "no problem". This triggered AutoMod again and we got stuck in a loop. For about three hours we replied to each other, making about 2200 comments each, starting here.
I've coded in a few measures to make sure this doesn't happen again, for example a limit to how often I will reply to a specific user. In the future this may result in 10 replies instead of 2000. I also added a maximum comment length, so I will reply to short replies, but not the long AutoMod messages.