diff options
author | Matthias Hecker <apoc@geekosphere.org> | 2015-06-14 20:52:47 +0200 |
---|---|---|
committer | Matthias Hecker <apoc@geekosphere.org> | 2015-06-14 20:52:47 +0200 |
commit | 6ead2df0ba73243c0d1805324b0fe64d85c08bac (patch) | |
tree | 97db39d2520abfca554dfc1587af124347f053ea /lib/rbot/ircbot.rb | |
parent | dd06ceee0c26703a73acb225a6500579f38c8c3e (diff) |
journal, integrated in bot
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| |