To find out exactly what is going to and from the server and your client (or in this case the bot), in the client, type
Code:
/debug @debug


This will send a complete listing of all commands sent to the server and the responses from the server to the @debug window. This will continue to accumulate until such time as the command
Code:
/debug off 
is issued on that same client (or the client is closed).

That should enable you to figure out which event you need to use to trap the proper information.

If you can't figure it out yourself, post a copy of the debug window (if you don't feel like typing it all out, just grab a screenshot of it and post the screenshot), and someone here should be able to resolve your problems.