Anyone know of a IM client, or a plugin to an IM client (trillian!?) that will allow me to interface to it with a programming language or script, to send and recieve messages to/from it?

I know I can make my own, but I need something that is easily available to anyone and works well.
_________________________
Written using the Dvorak keyboard layout.