Module: Mchat::Command::Help

Defined in:
lib/mchat/commands/help.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.configure(repl) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/mchat/commands/help.rb', line 4

def self.configure(repl)
  CommandConditions.push({
    name: 'help',
    description: "h[elp]\t\tfind help",
    help_condition: ['help','h'],
    help_doc: :help_help_doc,
    command_condition: ['/help', /\/help (.*)/, '/h', /\/h (.*)/],
    command_run: :help_command_run
  })
end