lib/protonbot/bot_plugins.rb in protonbot-0.3.1 vs lib/protonbot/bot_plugins.rb in protonbot-0.3.2
- old
+ new
@@ -42,11 +42,12 @@
@plugins['core'] =
pluginr "#{Gem.loaded_specs['protonbot'].lib_dirs_glob.split(':')[0]}/protonbot/core_plugin/plugin.rb"
@plugin_loader.call if @plugin_loader
@plugins.each do |k, v|
v.bot = self
- v.log = @_log.wrap("?#{k}")
v.launch
+ v.log = @_log.wrap("?#{v.name}")
+ v.log.info("Started plugin `#{v.name} v#{v.version}` successfully!")
end
self
end
# Loads given plugin by name