Were you using the licensed version of tribot, from the official website, and not using any dodgy hacks to circumvent their checks?
I think the tribot writers have measures in place to prevent malicious scripts from running in the client. However I'm not sure so someone else will have elaborate further in how the client works.