How do I make robot connect AIM/MSN and stay connected, and respond to a message with a PHP function ?
I can't seem to find even an AIM function that would work or isn't from 2001
You would need to implement OSCAR with sockets.
There is a tutorial to socket programming: http://php.net/manual/en/sockets.examples.php
Edit: I stumbled across this resource that may help you: http://wip.asminog.com/workshop/webicqpro/webicqpro.html
I think AIM/MSN uses XMPP. Check out the PHP libraries for XMPP.