Skip to content
Browse files

+ "Go back" to go back to the awake state (better recognition).

  • Loading branch information...
1 parent 7162697 commit a04db6d452cd54f8c55cb62250baca00712aa726 @floere committed Jul 1, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −1 examples/magic_eight_ball_dialog.rb
  2. +0 −2 lib/james/builtin/core_dialog.rb
View
2 examples/magic_eight_ball_dialog.rb
@@ -47,7 +47,7 @@ def initialize
'I have a question' => :shake
state :shake do
- hear ['Shake the eight ball', 'Again']
+ hear ['Shake the eight ball', 'I have another question', 'Again']
into do
states[rand(states.size)]
end
View
2 lib/james/builtin/core_dialog.rb
@@ -24,8 +24,6 @@ class CoreDialog
chainable
hear "Thank you, James." => :awake,
- "Thanks for that, James." => :awake,
- "Thank you." => :awake,
"Go back." => :awake,
'I need some time alone, James.' => :away,
"Good night, James." => :exit

0 comments on commit a04db6d

Please sign in to comment.
Something went wrong with that request. Please try again.