I don't see an alias for the $mainbot identifier. Also, when commenting a script, you should put a ; in front of the line or use / /
;comment ;comment ;or /* comment comment */