Developing with a Jabber Client

I’m trying to write a Jabber bot to allow people to IM in and add songs to my iTunes Party Shuffle which is then broadcast via Nicecast; essentially, an automated requests line.

I’m confident that once I get to the point where I can have subroutines for incoming message and outgoing message I’ll be able to write the code to interface with the user, but I haven’t been able to figure out how to interface with the Jabber server. I have to hack the source of some open source app like Adium to provide a Jabber interface for the script, but I don’t know any languages that might be useful for the purpose.

If anyone knows of a Jabber client written in AppleScript, or can give me basic instructions for interfacing with obj-C code I’d appreciate it. Thanks.