I looked through the tcl doc, however didnt find anything about the bots usermodes on the ircd. Is there a command to see these, or am I going to have to use raw?
Send out a "MODE botnick" and make a RAW bind to numeric 221.
Within the triggered proc, check that the "from" is the server and not the bot itself. This will avoid confusion between the reply of the server of the bots usermodes and the reply given when the bot changes its own usermodes (which usually is done right after a connection to the server).