tcpbot/plugins/PlugList.rb
2013-07-01 12:02:17 -05:00

20 lines
308 B
Ruby

require 'cinch'
require_relative '../classes/Util.rb'
class PlugList
include Cinch::Plugin
@@commandName = "plugs"
set :prefix, /^:/
match /plugs/
def execute(m)
ibot = Util::Bot.instance
str = ""
ibot.bot.plugins.each do |plug|
str += " #{plug.class.name}"
end
m.reply str
end
end