// This JavaScript runs for every map // section the server sends. // "view" is a string that contains the // section around your bot. print(view) // Here, you're "ask()"ing yourself for // a command. Instead, write code that // parses "view" and "send()" an appropriate // command. ask(function(cmd) { print('Sending [' + cmd + ']') send(cmd) }) // Your changes are saved automatically. // To revert everything, simply remove all // text and reload this page.