This is an XMPP Multi-User Chat logger with web-interface written in Ruby. It is made possible by Sinatra, Blather, and some other awesome software.
XMPP settings (bot's JID, password and nickname and room's name) are specified in config/xmpp.yml
. Database to use is specified in config/database.yml
.
xmpp-logger
uses Sphinx search engine and Thinking Sphinx gem to provide message search. Ruby Whenever gem is used to generate cron tasks for periodic indexing. To update crontab file, run whenever -i
.
At least one user must be created to make possible accessing web-interface.
$ irb
> require './app'
> u = User.new(:login => 'admin')
> u.password = 'admin'
> u.save
The easiest way to get web-interface up and running is to use thin -R config.ru start
. XMPP logger should be started separately using bundle exec ruby logger.rb