Module: Mchat::Command::ChannelNew

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

def self.configure(repl)
  CommandConditions.push({
    name: 'channel_new',
    description: "channel_new\tcreate new channel",
    help_condition: ['channel_new'],
    help_doc: :channel_new_help_doc,
    command_condition: ['/channel_new', /\/channel_new (.*)/],
    command_run: :channel_new_command_run
  })
end