james 0.0.5-universal-darwin-10 → 0.0.6-universal-darwin-10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/james/builtin/core_dialogue.rb +5 -5
- metadata +2 -2
@@ -5,15 +5,15 @@ class CoreDialogue
|
|
5
5
|
state :awake do
|
6
6
|
chainable # If James is awake, he offers more dialogues on this state, if there are any.
|
7
7
|
|
8
|
-
hear '
|
9
|
-
"
|
10
|
-
"
|
8
|
+
hear 'I need some time alone, James.' => :away,
|
9
|
+
"Good night, James." => :exit,
|
10
|
+
["Thank you, James.", "Thanks, James."] => :awake
|
11
11
|
into { "Sir?" }
|
12
12
|
end
|
13
13
|
|
14
14
|
state :away do
|
15
|
-
hear 'James?'
|
16
|
-
"
|
15
|
+
hear 'James?' => :awake,
|
16
|
+
"Good night, James." => :exit
|
17
17
|
into { "Of course, Sir!" }
|
18
18
|
end
|
19
19
|
|