wayita is an IRC bot with the following features: - serving factoids (little pieces of information, for example often typed help texts) wayita was written to replace ayita in #svn on freenode because ayita was offline for a long time. Creating the factoids database: ------------------------------ If no databases exist when starting wayita empty factoid DBs are created. Creating the DB from a wayita dump file: wget http://repos.borg.ch/svn/wayita/trunk/factoids/factoids.txt mkdir db src/wayita-dump.py restore db factoids.txt ('db' is the subdir to create the databases in) Creating the DB from an ayita lisp file: wget http://hix.nu/svn-public/ayita/factoids.svn src/lisp2bdb-factoids.py db factoids.svn Creating the user database: -------------------------- The following commands adds a user with authlevel 2. Level 0 users are unable to do any changes to the DB. Level 1 users can change factoids. Level 2 users can also use the grant and revoke commands. OPs in a channel are automatically granted level 1 access. src/wayita-user.py db 'sabor!n=mf@fehu.rola.ch' 2 Creating the config file: ------------------------ wget http://repos.borg.ch/svn/wayita/trunk/wayita.conf.tmpl -O wayita.conf Then edit wayita.conf. Running the bot: --------------- src/main.py or with a different config file: src/main.py wayita-test.conf TODO: ---- * "help " * document !a (and !w) * escaping for arguments (sql syntax?) * danielsh said: wayita bug: can teach factoids keys =~ /[.!]$/ but can't forget them. workaround by neels is the 'learn X is not Y' syntax