Aside from handling it with management instead of escalating the prank war, I don't see a lot of terribly polite ways above and beyond what she'd already done.
As for why I think it was intended to annoy, I suppose from my perspective at least, that's the obvious conclusion.
A bot annoyed her, so she wrote her own. From the text in the blog post, she seems to take pleasure in the annoyed reactions of her co-workers. That she got the annoyed reaction, and then sought to find a way to daemonize the script so that she could annoy them more thoroughly.
Those to me indicate a person who is being malicious, but is trying not to sound like they are.
Regardless, if there's anything I take umbrage with, it's that she thinks that this will help solve her issue, in any small way.
It's hard to look pragmatically at what might seem like justice, but looking for a similar analogy, if you've seen or read "The Help", the actions done to that poor pie were the result of a vengeful woman.
I'm not saying either woman didn't have cause to be upset, or angry, or that they might not have been driven to vengeful acts.
What I am saying though, is what I started off saying. Two rights don't make a wrong. I understand people sympathizing with her. She was done wrong. I get it. As a people though, we're supposed to be better than that.