Module: Mchat::Command::Leave
- Defined in:
- lib/mchat/commands/leave.rb
Overview
Command Join
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/leave.rb', line 5 def self.configure(repl) CommandConditions.push({ name: 'leave', description: "l[eave]]\tleave channel", help_condition: ['leave','l'], help_doc: :leave_help_doc, command_condition: ['/leave', /\/leave (.*)/, '/l', /\/l (.*)/], command_run: :leave_command_run }) end |