Class: Lita::Handlers::Help

Inherits:
Object
  • Object
show all
Extended by:
Handler::ChatRouter
Defined in:
lib/lita/handlers/help.rb

Overview

Provides online help about Lita commands for users.

Instance Method Summary collapse

Instance Method Details

#help(response) ⇒ void

This method returns an undefined value.

Outputs help information about Lita commands.

Parameters:

  • response (Response)

    The response object.



16
17
18
19
20
# File 'lib/lita/handlers/help.rb', line 16

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