Just wanted to say this works great. Thanks.
I'm trying to adapt it a bit for my needs, though. I'm trying to get it to send a message to the channel whenever there's a ping from the server.
Instead of using what the person last said as the message sent to pandorabots.com, I'd use a %botmessage var, which I'd set up to just be the last message said in the channel. That part is all well and fine, but I can't figure out how to change this script to utilize that var in the on:ping scenario.
Any help would be appreciated!