Method: CampfireBot::Plugin.on_command

Defined in:
lib/plugin.rb

.on_command(command, *methods) ⇒ Object

Event handlers



29
30
31
32
33
# File 'lib/plugin.rb', line 29

def on_command(command, *methods)
  methods.each do |method|
    Plugin.registered_commands << Event::Command.new(command, self.to_s, method)
  end
end