And sorry I have to say this but I dont like the script.., let\'s say you change your nick, someone takes your nick, and then he/she has control of the bot. Second; you should change \'yournick\' into a variable, much easier to change for ppl. Third you missed 2 brackets at the end.
Capskicker for bots:
Type: !capskick on , to turn the capskicker on
Type: !capskick off , to turn the capskicker off
Type: !capskick set [N] , to set the allowed percent of caps. [N] is the amount of caps alllowed.