XMPP Multi-User Chat logger with web-interface written in Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db/migrate
log
public
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
app.rb
config.ru
logger.rb

README.md

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.

Configutation

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.

Sphinx search

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.

Users management

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

Usage

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