4 # :title: rbot journal management from IRC
6 # Author:: Matthias Hecker (apoc@geekosphere.org)
10 class JournalModule < CoreBotModule
14 include Irc::Bot::Journal
16 Config.register Config::StringValue.new('journal.storage',
18 :requires_rescan => true,
19 :desc => 'storage engine used by the journal')
20 Config.register Config::StringValue.new('journal.storage.uri',
22 :requires_rescan => true,
23 :desc => 'storage database uri')
28 name = @bot.config['journal.storage']
29 uri = @bot.config['journal.storage.uri']
32 storage = Storage.create(name, uri)
34 error 'journal storage initialization error!'
39 debug 'journal broker starting up...'
40 @broker = JournalBroker.new(storage: storage)
45 debug 'journal broker shutting down...'
50 def help(plugin, topic='')
56 journal = JournalModule.new