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
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
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.