Module: Mchat::Command::Channel

Defined in:
lib/mchat/commands/channel.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/channel.rb', line 4

def self.configure(repl)
  CommandConditions.push({
    name: 'channel',
    description: "ch[annel]\tfind channel list & get channel info",
    help_condition: ['channel','ch'],
    help_doc: :channel_help_doc,
    command_condition: ['/channel', /\/channel (.*)/, '/ch', /\/ch (.*)/],
    command_run: :channel_command_run
  })
end