james 0.0.5-universal-darwin-10 → 0.0.6-universal-darwin-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
|