class Voltron::Defender::Help
Public Instance Methods
help()
click to toggle source
# File lib/voltron/defender/commands/help.rb, line 7 def help "# Get a list of all commands I understand\n.help\n" end
respond_with(adapter)
click to toggle source
# File lib/voltron/defender/commands/help.rb, line 15 def respond_with(adapter) output = [] adapter.commander.listeners.each { |l| output << l.help } adapter.message("Here are all the commands I'll respond to. Anything in `[]` is considered an optional argument. ```#{output.compact.join("\n")}```") end
responds_to()
click to toggle source
# File lib/voltron/defender/commands/help.rb, line 11 def responds_to ['help'] end