LuluBot
Created by: Stephan Borg, Last modification: 04 Jul 2004 (07:59 UTC)
Introduction
LuluBot is an irc bot written in PHP. Its role is to link irc activity to web visibility : logging, requests and queries, interaction, modification of web content from irc, etc ..It also include all well-known goodies that we can expect from a modern ircbot : google search, dictionnary, fortune cookies, random behaviour, social and protocol dealing. That bot can also become a FOAF relay, and deal with human protocol in irc space.
LuluBot is a rewritting of TikiBot http://tikiwiki.org/TikiBot under LGPL licence with wider ability to interact with the web application.
mose at mose.fr
Install
- Extract the source code into a directory not accessible through the web server. If your web application lives at /home/htdocs/mywebapp/, you could place LuluBot in /home/htdocs/lulubot/ for example.
- Open conf.php and create/modify:{CODE()}#$confserver>'server' = 'irc.freenode.net'; // your irc server
- $confport>'port' = 6667; // your irc port
$confjoin>'join'[] = '#bitweaver'; // your irc channel
{CODE}You can add multiple join channel lines. The first two settings are default values.
- By default, a number of skills will be enabled, which can be seen in conf.php. You configure custom skills from here, for example:{CODE()}$confskills>'skills'[] = 'bitweaver';
define('BITWEAVER_PATH', '/home/htdocs/mywebapp/'); // don't forget ending slash
define('BITWEAVER_URL', 'http://www.bitweaver.org/'); // don't forget ending slash{CODE}
- Once complete, you execute LuluBot. Enter php lulubot_go.php one the command line.
Skills
nickometer
- outputs the lame factor for a given nickname.
- syntax: ,n <nick>
<lulubot8626> mose: 'huhu' is 0% lame
faq
- simple thesaurus of keywords associated with definitions.
- syntax: ,f <keyword>
<lulu> mose: mose = geek of all trades
- syntax: ,f- <keyword>
<lulu> mose: okay I removed mose.
- syntax: ,f+ <keyword><definition>
<lulu> mose: okay I stored mose.
Note: faqs are stored in skills/faq/faq.#channel.txt files
fortune
- the traditional wisdom random dispatcher.
- syntax: ,o
<lulu> mose: BOFH excuse #437: crop circles in the corn shell
- wellknown search engine at http://google.com
- syntax: ,g <words>
<lulu> mose: Books: Books : Lulu - url: http://books.lulu.com/browse/
php
- gives syntax of php functions.
- syntax: ,php <function>
<lulu> mose: strtok (string arg1, string arg2) - Tokenize string
- http://php.net/strtok
translate
- Translates strings using babelfish.
- syntax: ,tr <lang_lang><anything>
<lulu> mose: (en_fr) hello kids = bonjour gosses
Available languages :
en_zh, en_fr, en_de, en_it, en_ja, en_ko, en_pt, en_es,
zh_en, fr_en, fr_de, de_en, de_fr, it_en, ja_en, ko_en,
pt_en, ru_en, es_en
tikiwiki
- provide the ability to communicate with a local tikiwiki.
- syntax: ,tw <command><parameters>
<lulu> mose: ,tw help who stats rpage dir find
bitweaver
- provide the ability to communicate with a local bitweaver.
- syntax: ,tp <command><parameters>
<lulu> mose: ,tp help who stats rpage dir find
Send new skills to mose at mose . fr</lulu></mose></parameters></command></lulu></mose></parameters></command></lulu></mose></anything></lang_lang></lulu></mose></function></lulu></mose></words></lulu></mose></lulu></mose></definition></keyword></lulu></mose></keyword></lulu></mose></keyword></lulubot8626></mose></nick>