{"action":"opened","issue":{"url":"https://api.github.com/repos/phase/PhaseBot/issues/9","labels_url":"https://api.github.com/repos/phase/PhaseBot/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/phase/PhaseBot/issues/9/comments","events_url":"https://api.github.com/repos/phase/PhaseBot/issues/9/events","html_url":"https://github.com/phase/PhaseBot/issues/9","id":109696031,"number":9,"title":"Script Engine","user":{"login":"phase","id":7685133,"avatar_url":"https://avatars.githubusercontent.com/u/7685133?v=3","gravatar_id":"","url":"https://api.github.com/users/phase","html_url":"https://github.com/phase","followers_url":"https://api.github.com/users/phase/followers","following_url":"https://api.github.com/users/phase/following{/other_user}","gists_url":"https://api.github.com/users/phase/gists{/gist_id}","starred_url":"https://api.github.com/users/phase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phase/subscriptions","organizations_url":"https://api.github.com/users/phase/orgs","repos_url":"https://api.github.com/users/phase/repos","events_url":"https://api.github.com/users/phase/events{/privacy}","received_events_url":"https://api.github.com/users/phase/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phase/PhaseBot/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-04T18:44:38Z","updated_at":"2015-10-04T18:44:38Z","closed_at":null,"body":"In the res directory, we can make a directory called *scripts*, which contain a long list of commands for the bot to run. Such as:\n\n```\nsudo /i stone 5\ndig 0 -1 0\nplace 0 -1 0\nmove 1 0 0\ndig 0 -1 0\nplace 0 -1 0\nmove 1 0 0\ndig 0 -1 0\nplace 0 -1 0\nmove 1 0 0\ndig 0 -1 0\nplace 0 -1 0\nmove 1 0 0\ndig 0 -1 0\nplace 0 -1 0\nmove 1 0 0\n```\n\nAnd we can have certain *script* commands within the files to do certain tasks, like `for loops` and `comments`.\n\n```\n# Do the next 3 lines 5 times\n.for 3 5\ndig 0 -1 0\nplace 0 -1 0\nmove 1 0 0\n```"}}