OK. Cyanideh, What is happening is that the Capcha is appearing while you are afk and the bot is still typing so it inputs the 123 repeatedly into the Capcha and it gets the Capcha wrong, And when you get the Capcha wrong 3 times it causes a de-buff on your char that you cannot get rid off (to prevent botting)
So basically when you log in and start botting watch it for a moment or two until the first Capcha appears, Once you have completed the first Capcha you should be safe for at least 30-60 min but its not a guarantee when it appears.
Hence why a capcha alarm would be very handy ^^
Oh another safe feature you could add (That shouldn't be to hard) is when a capcha appears it should stop typing so it doesn't put in the wrong numbers