Class: Help

Inherits:
Sponge::Plugin show all
Defined in:
lib/proto/plugins/help.rb

Constant Summary

Constants inherited from Sponge::Plugin

Sponge::Plugin::AUTH, Sponge::Plugin::LIST, Sponge::Plugin::LISTENERS

Instance Method Summary collapse

Methods inherited from Sponge::Plugin

command, has_listener?, #help, inherited, #initialize, listen_to, requires_auth, #requires_auth?, #usage

Constructor Details

This class inherits a constructor from Sponge::Plugin

Instance Method Details

#reply(m, arg) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/proto/plugins/help.rb', line 3

def reply(m, arg)
  if @bot.plugins.has_plugin?(arg)
    m.reply @bot.plugins.help(arg)
  else
    m.reply "Plugin unknown"
  end
end