lib/protonbot/bot.rb in protonbot-0.3.2 vs lib/protonbot/bot.rb in protonbot-0.3.3
- old
+ new
@@ -1,8 +1,8 @@
# Main bot class. Use it to create the bot
class ProtonBot::Bot
- attr_reader :log, :_log, :dbs, :plugins, :conf, :plugs, :plugthrs
+ attr_reader :log, :_log, :dbs, :plugins, :conf, :plugs, :plugthrs, :core
# @yield Main bot's block. You'll use it for configuring bot.
def initialize(&block)
@_log = ProtonBot::Log.new
@log = @_log.wrap('main')
@@ -13,9 +13,10 @@
@conf = {}
configure
@log.info('Processed config block')
+ @parr = []
@plugins = {}
plugins_load
@log.info('Processed plugins block')
@dbs = {}