Class: Help

Inherits:
Object
  • Object
show all
Includes:
Cinch::Plugin
Defined in:
lib/plugins/help.rb

Instance Method Summary collapse

Instance Method Details

#execute(m) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/plugins/help.rb', line 8

def execute(m)
  m.user.notice("List of commands:")
  
  bot.plugins.each do |p|
    if p.respond_to? :help
  m.user.notice(p.help)
    end
  end
end