Class: Lita::Handlers::Help

Inherits:
Lita::Handler show all
Defined in:
lib/lita/handlers/help.rb

Overview

Provides online help about Lita commands for users.

Instance Method Summary collapse

Methods included from Lita::Handler::EventRouter

#event_subscriptions_for, extended, #on, #trigger

Methods included from Lita::Handler::HTTPRouter

extended, #http, #http_routes

Methods included from Lita::Handler::ChatRouter

#dispatch, #dispatch_to_route, extended, #route, #routes

Instance Method Details

#help(response) ⇒ void

This method returns an undefined value.

Outputs help information about Lita commands.

Parameters:


14
15
16
17
18
# File 'lib/lita/handlers/help.rb', line 14

def help(response)
  output = build_help(response)
  output = filter_help(output, response)
  response.reply_privately output.join("\n")
end