This would be much better if you just made the IRC bot with PHP.
Also, a nice API would be beneficial.