require 'rbot/plugins'
require 'rbot/message'
require 'rbot/language'
-require 'rbot/journal'
module Irc
# web service
attr_accessor :webservice
- # persistent message queue
- attr_accessor :journal
-
# server we are connected to
# TODO multiserver
def server
myself.channels
end
+ # returns the journal
+ def journal
+ if @plugins['journal']
+ @plugins['journal'].broker
+ end
+ end
+
# nick wanted by the bot. This defaults to the irc.nick config value,
# but may be overridden by a manual !nick command
def wanted_nick
log_session_start
- @journal = Journal::JournalBroker.new(bot: self)
-
if $daemonize
log "Redirecting standard input/output/error"
[$stdin, $stdout, $stderr].each do |fd|