Sha256: 571e421f18d1fa3346ae866f0c6cd367b2bf94d899a10ffe9e1d6d8ed4a87531
Contents?: true
Size: 473 Bytes
Versions: 11
Compression:
Stored size: 473 Bytes
Contents
# When asked for help, responds with a list of commands supported by # all loaded plugins class Robut::Plugin::Help include Robut::Plugin desc "help - displays this message" match /^help$/, :sent_to_me => true do reply("Supported commands:") Robut::Plugin.plugins.each do |plugin| plugin_instance = plugin.new(reply_to, private_sender) Array(plugin_instance.usage).each do |command_usage| reply(command_usage) end end end end
Version data entries
11 entries across 11 versions & 2 rubygems