initial commit
This commit is contained in:
parent
81ee8a3e51
commit
df591aafc4
14
extendobot
14
extendobot
@ -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
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]+) (.+)/;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user