/* This core is loaded if no Bot state has been saved (ai.dat) This gives the bot the ability to connect to a Channel and received orders. Orders such as modify nodes, and save the state to be loaded next time. */ /* This is a annotation handled by the bot to set up varribles, This prevents the varribles being reset everytime the * function is executed * note: annotation may not have any comments before or after it. Also the path is reletive to the main java class. */ //@varribles bootcore/varrible.ini function run() { print(command.command+newLine); if(command.command == "NOTICE AUTH") { auth++; } if(auth==4){ auth++; raw("USER " + config.BOTNAME + " " + config.BOTNAME + " " + config.BOTNAME + " :" + config.BOTNAME); raw("NICK " + config.BOTNAME); } if(!join && command.command == "MODE") { join=true; join("#bottest"); } } function raw(out) { connection.send_raw(out+newLine); } function join(channel) { raw("JOIN "+channel); } function part(channel) { raw("PART "+channel); } function sendmsg(to,message) { raw("PRIVMSG " + to + " :" + message); }