Bot::BasicBot::Pluggable::Module::Infobot
Does infobot things - basically remmebers and returns factoids. Will ask another infobot about factoids that it doesn't know about, if you want.
Assume the bot is called 'eric'. Then you'd use the infobot as follows.
me: eric, water is wet. eric: Ok, water is wet. me: water? eric: water is wet. me: eric, water is also blue. eric: ok, water is also blue. me: eric, water? eric: water is wet or blue.
etc, etc.
a response that begins <reply> will have the '<noun> is' stripped, so
me: eric, what happen is <reply>somebody set us up the bomb eric: ok, what happen is <reply>somebody set us up the bomb. me: what happen? eric: somebody set us up the bomb
just don't do that in #london.pm.
Likewise, a response that begins <action> will be emoted as a response, instead of said. Putting '|' characters in the reply indicates different possible answers, and the bot will pick one at random.
me: eric, dice is one|two|three|four|five|six eric: ok, dice is one|two|three|four|five|six me: eric, dice? eric: two. me: eric, dice? eric: four.
Finally, you can read RSS feeds:
me: eric, jerakeen.org is <rss="http://jerakeen.org/index.rdf"> eric: ok, jerakeen.org is...
ok, you get the idea.
You can also tell the bot to learn a factoid from another bot, as follows:
me: eric, learn fact from dispy eric: learnt 'fact is very boring' from dipsy. me: fact? eric: fact is very boring
Set this to the nick of an infobot and your bot will ask them about factoids that we don't know about, and forward them on (with attribution).
To install Bot::BasicBot::Pluggable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::BasicBot::Pluggable
CPAN shell
perl -MCPAN -e shell install Bot::BasicBot::Pluggable
For more information on module installation, please visit the detailed CPAN module installation guide.