everything_else
It will be executed as long as none of the declared blocks in the current context have been executed. In other words, If the match doesn't occurs.
everything_else(&block)
everything_else(&block)
Platforms
Platform
Supported
Messenger
Telegram
Usage
class MainContext < Conversation
def actions
intent "greeting" do
@reply.text "Hello!"
end
intent "thanks" do
@reply.text "You're welcome"
end
intent "bye" do
@text.text "Good bye!"
end
everything_else do
@reply.text "I don't understand what you say"
end
end
end
Last updated
Was this helpful?