Module: Mchat::Command::Clear

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

Overview

Command Clear

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.configure(repl) ⇒ Object



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

def self.configure(repl)
  CommandConditions.push({
    name: 'clear',
    description: "c[lear]\t\tclean mchat screen",
    help_condition: ['clear','c'],
    help_doc: :clear_help_doc,
    command_condition: ['/clear', '/c'],
    command_run: :clear_command_run
  })
end