Class: Slackify::Handlers::UnhandledHandler
- Defined in:
- lib/slackify/handlers/unhandled_handler.rb
Overview
Default handler for any text message that is not handler by other handlers This can easily be replaced by setting you own unhandled handler when configuring slackify. Use ‘#unhandled_handler=` to set it. Your handler must implement a `self.unhandled` method.
Class Method Summary collapse
Methods inherited from Base
allow_slash_method, inherited, slack_client, supported_handlers
Class Method Details
.unhandled(params) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/slackify/handlers/unhandled_handler.rb', line 10 def self.unhandled(params) slack_client.chat_postMessage( as_user: true, channel: params[:event][:user], text: "This command is not handled at the moment", ) end |