ChoonBot uses a combination of Winamp (not version 3!), BrowseAmp and Paul Mutton's PircBot to create an IRC bot that allows users on an IRC channel to control the music played by the computer that is running Winamp. BrowseAmp uses HTTP requests to control Winamp, so in theory, Winamp and BrowseAmp could be running on one computer and ChoonBot on another.

It says it uses Paul Mutton's PircBot for the IRC part, so check on their forums for more info.

Since it says it uses HTTP requests, you could basically script it yourself with sockets. I did the same with HTTPQ and it works fine. Just never got around to tidying it up for release...