initial commit

This commit is contained in:
8dx 2013-07-16 18:56:45 -05:00
parent 81ee8a3e51
commit df591aafc4
3 changed files with 10 additions and 6 deletions

@ -7,11 +7,15 @@ utils = Util::Util.instance;
bots = Util::BotFamily.instance
servers = utils.getServers()
servers.each { |serv|
bots.add( {
"host" => serv['host'],
"name" => serv['name']
}
) if serv['autoconnect']
if serv['autoconnect']
bots.add( {
"host" => serv['host'],
"name" => serv['name']
}
)
puts "autoconnect to #{serv['name']}"
end
puts "ignoring #{serv['name']}"
}
bots.startAll
utils.MainLoop

BIN
plugins/.DynPlug.rb.swp Normal file

Binary file not shown.

@ -6,7 +6,7 @@ class DynPlug
include Hooks::ACLHook
include Util::PluginHelper
set :prefix, /^:/
@@commands["dynload"] = ":dynload <url> - dynamically load a plugin from url"
@@commands["dynload"] = ":dynload <plugname> <url> - dynamically load a plugin from <url> using <plugname> as plugin name"
@@levelRequired = 10
match /dynload ([a-zA-Z][a-zA-Z0-9]+) (.+)/;