Class: Help

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

Instance Method Summary collapse

Instance Method Details

#execute(m) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/rateless_bot/plugins/help.rb', line 12

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

#helpObject



4
5
6
# File 'lib/rateless_bot/plugins/help.rb', line 4

def help
  '!help - shows this help message'
end