Share to: share facebook share twitter share wa share telegram print page

 

Infobot

Infobot
Original author(s)Kevin Lenzo
Initial release1995
Stable release
1.5.3 / August 1, 2008; 16 years ago (2008-08-01)
Written inPerl
Operating systemUnix-like
TypeIRC bot
LicenseArtistic License
Websiteinfobot.sourceforge.net

Infobot is a Perl IRC bot, first written in 1995 by Kevin Lenzo. The bot's main goal was to remember URLs and associate them with a descriptive name, so whenever someone needed a specific URL they could ask the bot. For that reason, the first Infobot, running in #macintosh on the EFnet IRC network, had the nickname 'url'.

Although the main project is now inactive, many forks from the original program were made, some of which are still active. Most of these forks carry extra features, such as googling a phrase given through the chat and saying the results of the query as messages directly in the chat.

Operation

The Infobot works by a method of factoids. It stores information in its database by connecting a phrase with its definition, usually an informative short line. It records its information by constantly listening to the chat (which is configurable). It states its factoids when it recognizes a question in the chat. For example:

 <someone> wikipedia is http://www.wikipedia.org/
The Infobot at this point silently remembers the statement.
 <someone> wikipedia?
 <infobot> somebody said wikipedia is http://www.wikipedia.org/

Because of its ability to store statements and re-state them with ease, many IRC channel operators use an Infobot to store information such as the channel rules so they could easily give them to newcomers to the channel.

Using its automated replies, Infobots are also often used as an entertainment bot, giving humorous replies to certain queries. For example, to prevent the Infobot from saying 'X is Y', the key word '<REPLY>' is used, to have this effect:

 <someone> dumb bot is <REPLY>stupid human
 <someone> infobot: what's up?
 <infobot> huh?
 <someone> dumb bot
 <infobot> stupid human

Derived bot projects

Infobots running the original Infobot code have become less popular on IRC now, mostly because of the inactivity of the original project. Newer Infobots have additional features. Most of them involve connecting to websites. For example, some bots have a 'weather' module. So someone can ask the Infobot the weather at a certain address, and the Infobot will connect to a weather site and report the up-to-date weather on the chat. Infobots are also useful as calculators, and in currency conversions, word definitions, and many other things which one would otherwise have to open a site for.

A notable fork was blootbot[1] by Tim Riker. In 2008 it was merged back with the original infobot. The resulting code is now maintained under the original infobot name by Riker.[2] It uses an SQL back-end such as MySQL, PGSQL, or SQLite to store factoids.

References

  • Paul Mutton, IRC hacks, O'Reilly Media, 2004, ISBN 0-596-00687-X, pp. 159–164
  • Kevin Lenzo, Infobots and Purl, chapter 13 in Jon Orwant, Games, diversions, and Perl culture: best of the Perl journal, O'Reilly Media, 2003, ISBN 0-596-00312-9, pp. 115–125

Notes

  1. ^ Juergen Haas, About.com Guide, blootbot Archived 2010-08-24 at the Wayback Machine
  2. ^ "blootbot: The slowest and most bloated bot in the world". Retrieved January 27, 2010.
Kembali kehalaman sebelumnya


Index: pl ar de en es fr it arz nl ja pt ceb sv uk vi war zh ru af ast az bg zh-min-nan bn be ca cs cy da et el eo eu fa gl ko hi hr id he ka la lv lt hu mk ms min no nn ce uz kk ro simple sk sl sr sh fi ta tt th tg azb tr ur zh-yue hy my ace als am an hyw ban bjn map-bms ba be-tarask bcl bpy bar bs br cv nv eml hif fo fy ga gd gu hak ha hsb io ig ilo ia ie os is jv kn ht ku ckb ky mrj lb lij li lmo mai mg ml zh-classical mr xmf mzn cdo mn nap new ne frr oc mhr or as pa pnb ps pms nds crh qu sa sah sco sq scn si sd szl su sw tl shn te bug vec vo wa wuu yi yo diq bat-smg zu lad kbd ang smn ab roa-rup frp arc gn av ay bh bi bo bxr cbk-zam co za dag ary se pdc dv dsb myv ext fur gv gag inh ki glk gan guw xal haw rw kbp pam csb kw km kv koi kg gom ks gcr lo lbe ltg lez nia ln jbo lg mt mi tw mwl mdf mnw nqo fj nah na nds-nl nrm nov om pi pag pap pfl pcd krc kaa ksh rm rue sm sat sc trv stq nso sn cu so srn kab roa-tara tet tpi to chr tum tk tyv udm ug vep fiu-vro vls wo xh zea ty ak bm ch ny ee ff got iu ik kl mad cr pih ami pwn pnt dz rmy rn sg st tn ss ti din chy ts kcg ve 
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9