diff options
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r-- | lib/rbot/ircbot.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index eb158c63..caabc15d 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -156,6 +156,7 @@ require 'rbot/registry' require 'rbot/plugins' require 'rbot/message' require 'rbot/language' +require 'rbot/journal' module Irc @@ -201,8 +202,12 @@ class Bot # loads and opens new registry databases, used by the plugins attr_accessor :registry_factory + # web service attr_accessor :webservice + # persistent message queue + attr_accessor :journal + # server we are connected to # TODO multiserver def server @@ -545,6 +550,8 @@ class Bot log_session_start + @journal = Journal::JournalBroker.new(bot: self) + if $daemonize log "Redirecting standard input/output/error" [$stdin, $stdout, $stderr].each do |fd| |