Skip to content

Commit

Permalink
js concat started #37
Browse files Browse the repository at this point in the history
  • Loading branch information
1wheel committed Jun 5, 2015
1 parent 1c7da66 commit d266134
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### Build
`npm install`
`npm install -g grunt-cli`


So basically we have this bot object, which is a closure, like a degenerate bastardized http://bost.ocks.org/mike/chart/. It has a bunch of actions: show, goTo, speak, eval, emote, prompts, dialogue. Each of those returns a promise that's resolved when the action is finished or the user supplies some input.

You can call those methods directly, but typically you'll pass a "dialogue" to the robot.dialogue method, which is an array of steps to follow. Each element of the array is an object specifying actions to be taken concurrently; each successive element is performed serially. This is not JSON — it's a JS object, and thus can contain real functions. It looks like this:
Expand Down

0 comments on commit d266134

Please sign in to comment.