attr_reader :botmodules
def initialize
- bot_associate(nil)
-
- @dirs = []
- end
-
- # Reset lists of botmodules
- def reset_botmodule_lists
@botmodules = {
:CoreBotModule => [],
:Plugin => []
}
+
@names_hash = Hash.new
@commandmappers = Hash.new
+
+ @dirs = []
+
+ @failed = Array.new
+ @ignored = Array.new
+
+ bot_associate(nil)
+ end
+
+ # Reset lists of botmodules
+ def reset_botmodule_lists
+ @botmodules[:CoreBotModule].clear
+ @botmodules[:Plugin].clear
+ @names_hash.clear
+ @commandmappers.clear
end
# Associate with bot _bot_
# load plugins from pre-assigned list of directories
def scan
- @failed = Array.new
- @ignored = Array.new
+ @failed.clear
+ @ignored.clear
processed = Hash.new
@bot.config['plugins.blacklist'].each { |p|