wiki:WikiStart
Last modified 2 years ago Last modified on 10/20/09 02:07:55

xenoworld OSS Repository

There is currently one project in this repository: A simple bot that devours every message you send to it and stores it in a database, except if the message starts with '.'

Snippets

Notiziar

sqlite3 .notiziar.sqlite3:

CREATE TABLE "messages" (
        date TIMESTAMP,
        message TEXT,
        title TEXT,
        id INTEGER PRIMARY KEY AUTOINCREMENT,
        jid  TEXT); 

Depends currently on: Smack (smack.jar, smackx.jar) and SQLite JDBC (sqlitejdbc-v056.jar)

Minimal settings to be set in .notiziar.properties:

host     = example.com
user     = bot
password = foobar

Currently the jid is saved for each entry, as the bot uses only one table.