Skip to content

Commit

Permalink
! README
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed May 9, 2011
1 parent 230c2e1 commit b90c134
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.textile
Expand Up @@ -45,16 +45,28 @@ Here, he will just say the current time when entering the @:time@ state.
h3. Running it

Running it is easy. Either use
<pre><code>require 'james'</code></pre>

<pre><code>require 'rubygems'
require 'james'

# Your script …

James.listen</code></pre>

in your script, and call it by using

<pre><code>ruby time_dialogue.rb</code></pre>

Or else, in the terminal, just call

<pre><code>$ james</code></pre>

and it will include all dialogues (files called @_dialog{ue,}.rb@) in this directory. E.g. @joke_dialog.rb@, @tweets_dialogue.rb@, or @monkey_dialog.rb@.

You can select dialogues using their first file name part

<pre><code>$ james time joke twitter</code></pre>

and it will include the time dialogue, the joke dialogue, and the twitter dialogue.

Note: The @james@ executable looks for files called and includes them.
Expand Down

0 comments on commit b90c134

Please sign in to comment.