download _infobottcl.desc
Language: NonCode
LOC: 0
Project Info
xbot4 - The version of X-Bot to supercede ... 2003(xbot4)
Server: Google
Type: svn
...\bin\Debug\xTclLib\scripts\
   _BotnetStats1.9.desc
   _cutetopics100.desc
   _dict109.desc
   _entity92.desc
   _hangman101.desc
   _infobottcl.desc
   _jesusbot1.0.desc
   _jIRCserv-0.02n.desc
   _Lusers.desc
   _mp3list100.desc
   _MsgLog1.1.desc
   _mysqlseen1.1.desc
   _newtopics.desc
   _no.spam.desc
   _quizgod.desc
   _serials100.desc
   _skool101.desc
   _Split4.1.desc
   _thehelper100.desc
   _topicmaster1.1.desc
   _trivia.desc
   _UltramodeNews10.desc
   _UndernetCS.desc
   _userquotes100.desc
   _Veed_0.2.desc
   _WebBanList1.1.desc
   _words100.desc
   _zipcodes100.desc
   abuse100.desc
   abuse100.tcl
   action.fix.desc
   action.fix.tcl
   activech100.desc
   activech100.tcl
   adbseen192.desc
   Adbseen192.tcl
   addban10-mbti.desc
   addban10-mbti.tcl
   added140.desc
   Added140.tcl
   addicted100.desc
   addicted100.tcl
   advert105.desc
   advert105.tcl
   alice120.desc
   alice120.tcl
   alltools.desc
   alltools.tcl
   antiidle-narf-0.3.desc
   antiidle-narf-0.3.tcl
   auth103.desc
   auth103.tcl
   autolimit102.desc
   autolimit102.tcl
   autooper.desc
   autooper.tcl
   av.pubmsg.desc
   av.pubmsg.tcl
   bancheck.desc
   bancheck.tcl
   BanCount1.1.desc
   BanCount1.1.tcl
   BanTools1.2.desc
   BanTools1.2.tcl
   bitchxirix.desc
   bitchxirix.tcl
   bot-solutions.3.0.desc
   bot-solutions.3.0.tcl
   botping.desc
   botping.tcl
   bwscript20.desc
   bwscript20.tcl
   chancheck100.desc
   chancheck100.tcl
   ChanMax1.2.desc
   ChanMax1.2.tcl
   ChanPeak1.3.desc
   ChanPeak1.3.tcl
   chanrelay.desc
   chanrelay.tcl
   ClanAvail1.4.desc
   ClanAvail1.4.tcl
   ClanBase1.1.desc
   ClanBase1.1.tcl
   cmd_resolve.desc
   cmd_resolve.tcl
   compat.desc
   compat.tcl
   CopyVoice1.3.desc
   CopyVoice1.3.tcl
   cracks100.desc
   cracks100.tcl
   DALnetNews1.1.desc
   DALnetNews1.1.tcl
   date1.3.desc
   date1.3.tcl
   DateToDay1.0.desc
   DateToDay1.0.tcl
   daystill102.desc
   daystill102.tcl
   dccwatch104.desc
   dccwatch104.tcl
   Decide1.2.desc
   Decide1.2.tcl
   decide100.desc
   decide100.tcl
   define.desc
   define.tcl
   delhost1.01.desc
   delhost1.01.tcl
   delivery101.desc
   delivery101.tcl
   Dictionary1.1.desc
   Dictionary1.1.tcl
   DieAuth2.1.desc
   DieAuth2.1.tcl
   Dns2.5.desc
   Dns2.5.tcl
   DomainWhois1.2.desc
   DomainWhois1.2.tcl
   EFnetNews1.1.desc
   EFnetNews1.1.tcl
   egg-fu.1.7.desc
   egg-fu.1.7.tcl
   eggpad.desc
   eggpad.tcl
   englishonly102.desc
   englishonly102.tcl
   filerelay0.4.desc
   filerelay0.4.tcl
   fluxlearn1.5a.desc
   fluxlearn1.5a.tcl
   flyby101.desc
   flyby101.tcl
   gamble100.desc
   gamble100.tcl
   gamestar1.4.desc
   gamestar1.4.tcl
   GBan1.4.desc
   GBan1.4.tcl
   getops-2.6.desc
   getops-2.6.tcl
   getops.desc
   getops.tcl
   greeter101.desc
   greeter101.tcl
   guard101.desc
   guard101.tcl
   heise1.4.desc
   heise1.4.tcl
   HostSpy1.8.desc
   HostSpy1.8.tcl
   HostTools1.5.desc
   HostTools1.5.tcl
   HTMLOpVote2.0.desc
   HTMLOpVote2.0.tcl
   ident.desc
   ident.tcl
   ieXbeta1.1.desc
   ieXbeta1.1.tcl
   ilc100.desc
   ilc100.tcl
   infoegg-v1-3.desc
   infoegg-v1-3.tcl
   insult101.desc
   insult101.tcl
   inv.desc
   inv.tcl
   irco-fuckem.desc
   irco-fuckem.tcl
   irco-muh.desc
   irco-muh.tcl
   irco-psybnc.desc
   irco-psybnc.tcl
   irco-scanport.desc
   irco-scanport.tcl
   irco-soundkick.desc
   irco-soundkick.tcl
   irco-wingateban.desc
   irco-wingateban.tcl
   kick100.desc
   kick100.tcl
   kickad100.desc
   kickad100.tcl
   KillLog2.5.desc
   KillLog2.5.tcl
   klined.desc
   klined.tcl
   lamer.desc
   lamer.tcl
   lanparty.desc
   lanparty.tcl
   limit-v1.1.desc
   limit-v1.1.tcl
   limitchan.desc
   limitchan.tcl
   LinkedBots1.2.desc
   LinkedBots1.2.tcl
   maxvisitors101.desc
   maxvisitors101.tcl
   mc.banchan.desc
   mc.banchan.tcl
   mc.spamcheck.desc
   mc.spamcheck.tcl
   megadeth100.desc
   megadeth100.tcl
   mIRCShitlist1.2.desc
   mIRCShitlist1.2.tcl
   moi.desc
   moi.tcl
   netlink107.desc
   netlink107.tcl
   NetStats1.2.desc
   NetStats1.2.tcl
   news.desc
   news.tcl
   news2html.desc
   news2html.tcl
   NoAccess1.1.desc
   NoAccess1.1.tcl
   noads108.desc
   noads108.tcl
   noawayactions1.03.desc
   noawayactions1.03.tcl
   NoColors1.2.desc
   NoColors1.2.tcl
   nocomics100.desc
   nocomics100.tcl
   NoFservs1.5.desc
   NoFservs1.5.tcl
   nosense2.desc
   nosense2.tcl
   notes2.desc
   notes2.tcl
   NoTriggers2.3.desc
   NoTriggers2.3.tcl
   oannouce100.desc
   oannouce100.tcl
   ok1.3.desc
   ok1.3.tcl
   opbegger103.desc
   opbegger103.tcl
   opkillsnn.desc
   opkillsnn.tcl
   OpNotice1.9.desc
   OpNotice1.9.tcl
   pa-trgt3_68.desc
   pa-trgt3_68.tcl
   passgen.desc
   passgen.tcl
   pcgames.desc
   pcgames.tcl
   pickakick102.desc
   pickakick102.tcl
   PortCheck2.2.desc
   PortCheck2.2.tcl
   postal101.desc
   postal101.tcl
   Pub.desc
   Pub.tcl
   pwf.desc
   pwf.tcl
   ques5.desc
   ques5.tcl
   ran.desc
   ran.tcl
   RandRead1.1.desc
   RandRead1.1.tcl
   randtopic2.04.desc
   randtopic2.04.tcl
   recruiters100.desc
   recruiters100.tcl
   released102.desc
   released102.tcl
   SearchPage.desc
   SearchPage.tcl
   sentinel.desc
   sentinel.tcl
   Services2.0.desc
   Services2.0.tcl
   sharereactor1.0.desc
   sharereactor1.0.tcl
   ShellTime1.6.desc
   ShellTime1.6.tcl
   ShellUptime1.0.desc
   ShellUptime1.0.tcl
   shortnews.desc
   shortnews.tcl
   showchans104.desc
   showchans104.tcl
   sound_dos-0.02a.desc
   sound_dos-0.02a.tcl
   Spod.desc
   Spod.tcl
   spymsg.desc
   spymsg.tcl
   StockQuote.desc
   StockQuote.tcl
   striptease104.desc
   striptease104.tcl
   SubChan2.0.desc
   SubChan2.0.tcl
   superbitch0.45.desc
   superbitch0.45.tcl
   sync1.2.desc
   sync1.2.tcl
   tan101.desc
   tan101.tcl
   tempc100.desc
   tempc100.tcl
   textsearch0.2.desc
   textsearch0.2.tcl
   TimeIdent1.0.desc
   TimeIdent1.0.tcl
   TimeMessage1.0.desc
   TimeMessage1.0.tcl
   TimeRehash1.0.desc
   TimeRehash1.0.tcl
   tool-lyrics.desc
   tool-lyrics.tcl
   top10.desc
   top10.tcl
   topiclock2.04.desc
   topiclock2.04.tcl
   topiclogger1.01.desc
   topiclogger1.01.tcl
   ucsx0.2.desc
   ucsx0.2.tcl
   uptime1.08.desc
   uptime1.08.tcl
   UrlGet1.4.desc
   UrlGet1.4.tcl
   userinfo.desc
   userinfo.tcl
   VerboseMail1.1.desc
   VerboseMail1.1.tcl
   Voice1.1.desc
   Voice1.1.tcl
   voiceallbut102.desc
   voiceallbut102.tcl
   voicebitch0.1.desc
   voicebitch0.1.tcl
   VoiceFservs1.3.desc
   VoiceFservs1.3.tcl
   vote1.14.desc
   vote1.14.tcl
   warn100.desc
   warn100.tcl
   weather3.3.1.desc
   weather3.3.1.tcl
   WebSiteStatus1.0.desc
   WebSiteStatus1.0.tcl
   Whatis1.5.desc
   Whatis1.5.tcl
   Whom1.0.desc
   Whom1.0.tcl
   winfuture.desc
   winfuture.tcl
   winident1.2.desc
   winident1.2.tcl
   worldtime.desc
   worldtime.tcl
   x-commands0.1.desc
   x-commands0.1.tcl
   zdnet1.1.desc
   zdnet1.1.tcl

Infobot(Tcl)
2001 by Mac-arena the Bored Zo

Infobot(Tcl) is a brand new script for eggdrop. It was first implemented back in 1999 or 2000 with no more than query and add, and now offers many commands which are shown below. Kryten is used as the name of the bot.

+--PUBLIC
| |
| +-QUERY
| | kryten, (entryname)?
| | Retrieves an entry from the database and prints it to the channel in a 
| | randomised format.
| | KNOWN BUGS
| | Does not print an error when an unknown entry is requested.
| | 
| +-FORGET
| | kryten, forget (entryname)
| | kryten, forget (entryname) and (entryname)
| | kryten, forget all references from (entryname)
| | Removes an entr(y|ies) from the database, printing a confirmation message.
| | RESTRICTIONS
| | Will not work on locked entries. (See Features:Lock below.)
| | 
| +-REPLACE
| | kryten, no, (entryname) is (content)
| | kryten, no, (plural entryname) are (content)
| | kryten, no, I am (content)
| | Changes an entry.
| | 
| +-ADD
| | kryten, (entryname) is (content)
| | kryten, (plural entryname) are (content)
| | kryten, I am (content)
| | Puts an entry into the database, printing a confirmation.
| | 
| +-CALCULATE
| | kryten, calc (algebra)
| | kryten, calculate (algebra)
| | kryten, (arithmetic)
| | Performs an algebraic and/or arithmetic calculation. Supports all Perl
| | operators as well as Tcl library functions.
| | 
| +-STATUS
| | kryten, stats?
| | kryten, status?
| | Prints a message containing vital info about the Infobot, including uptime
| | and DB size.
| | 
| +-DEFINE
| | kryten, what's the definition for (entryname)?
| | kryten, what is the definition for (entryname)?
| | Gives the straight definition for an entry, without filtering it ($who, 
| | random, references, etc. are not expanded).
| | 
| +-LOCK
| | kryten, lock (entryname)
| | Adds the <lock> tag to an entry.
| | 
| +-UNLOCK
| | kryten, unlock (entryname)
| | Removes the <lock> tag from the entry.
| | 
| +-DNS
| | kryten, dns (hostname|nickname)
| | kryten, nslookup (hostname|nickname)
| | kryten, dns for (nickname)
| | kryten, nslookup for (nickname)
| | Prints the result of a DNS lookup on a hostname or the hostname associated
| | with a nickname.
| | 
| +-TELL
| | kryten, tell (nickname) about (entryname)
| | Forwards an entry to another person.
| | 
| +-SEARCH
|   kryten, search for (regexp)
|   kryten, look for (regexp)
|   Greps the DB. (Does not escape many characters that otherwise would be.)
|   NOTE: DOES NOT WORK YET! Planned for a future version.
|
+--DCC 
  | 
  +-LOCK
  | .lock (entryname)
  | Locks an entry (adds a <lock> tag). (Same as public/private lock command.)
  | 
  +-UNLOCK
  | .unlock (entryname)
  | Unlocks an entry (removes its <lock> tag). (Same as public/private
  | unlock command.)
  | 
  +-LOOKUP
  | .lookup (entryname)
  | Looks up the data associated with entry in the database. (Same as 
  | public/private query.)
  | 
  +-LIST
  | .listdb
  | Logs every entry in the database, in the order it was added. Can be VERY
  | long.
  | 
  +-FORGET
  | .forget (entryname)
  | Removes an entry (just like public/private forget).
  +-IMPORT
    .importdb (relative path)
    Imports an Infobot(Tcl) database file into the bot's database. Note that
    you do not need to keep the DB file you import afterward; it will be saved
    next time the bot dumps its DB.

Features

In addition to the above commands, Infobot(Tcl) sports a number of features used within entries themselves. Features marked [NEW] are not found in infobot(pl) as of this writing.

$who [NEW]
  This one is in infobot(pl), but to a lesser degree. Infobot(Tcl) expands $who differently depending on how it is capitalised. Assuming the querier's nickname is 'fGewA':

     $who    ==    fgewa
     $Who    ==    fGewA
     $WHO    ==    FGEWA

$arg/Functions [NEW]
  Only works if your entry's name is of the format 'entry()'. This allows you to make an entry which relies on user input for part of its content. For example:

     >kryten, google(FOLDOC)?
     (google() is '<lock> <reply> that would be at http://www.google.com/search?q=$arg')
     that would be at http://www.google.com/search?q=FOLDOC

  There is also $uarg, specifically made for URLs. It escapes ungood characters and changes spaces to + signs, thus certifying that its expansion will be URL-kosher. (Note that functions are not only for URLs.)

Random
  Entries containing | will be expanded to a random result. Assuming an entry containing 'foo | bar | baz', the querier might get 'foo', 'bar', or 'baz'.

<reply>
  Does not apply the random Infobot formats (e.g. 'I think x is y...') to the entry.

<action>
  Delivers the entry as an action (/me).

Subentries [NEW]
  With subentries, you can make an entry into a DB of its own. The DB is just like the primary DB, even in that it can contain more DBs! Queriers specify entries within these sub-databases with the format entry1:entry2.

  A database entry should look like this:
    foobar == {foo bar} {{foo bar} foobar} {foobar {foo bar}}

  Notice the braces around multi-word entrynames and contents.

  Subentry queries are delivered so:
    kryten, Mac error:11?

References [NEW]
  References allow you to link an entry into another entry. It works like this:

    >kryten, y is z
    (y == 'z')
    >kryten, x is &y
    (x == '&y' - y has not been put into x in any way)
    >kryten, x?
    x is z
    >kryten, no, y is x
    (y == 'x')
    >kryten, x?
    x is x
    >kryten, x y z is a b c
    ('x y z' == 'a b c')
    >kryten, a b c is &{x y z}
    (note that in this reference, curly braces are required (>1 word in
     reference)
    >kryten, a b c?
    a b c is a b c

Locks [NEW]
  With locks you can define an entry as being changeable (and revocable) by no one but the bot or channel owner(s). Locks can be set by default by adding the <lock> tag (just like <reply>). You can also use the lock and unlock commands (see above) if you're the owner.

Lacks

Now the things Infobot(Tcl) doesn't have (yet) that infobot(pl) does.

s///
  You cannot partially change an entry. You must replace it.

karma, nickometre
  Low on the priority list due to frivolity.

join/part
  Since eggdrop itself provides similar facilities, this is not needed.

\
  May not work in a few contexts. Should work in most. Email your friendly neighbourhood Bored Zo if you find one in which it doesn't.

$date
  $who was hard enough to implement. ;)

weather, metar, internic, traceroute, translate
  Not to be implemented in Infobot(Tcl). There is, however, a translator script available.

change (currency)
  You could use calculate for now.

excuse
  Actually, the only reason this doesn't exist is because the excuse calendar is not yet in the default DB file. Easily implementable on a stock IB(Tcl) using locks and random. (In fact, this is one of the available IB(Tcl) factpacks.)

ignore, op, die
  Provided (in various forms) by eggdrop.

About Infobot(Tcl)
Infobot(Tcl) was based on Infobot (referred to here as Infobot(pl)), by oznoid (aka kevin lenzo), <lenzo@cs.cmu.edu>. Infobot(Tcl) was written from the ground up by Mac-arena the Bored Zo, <macrulez@softhome.net>, except for some strings (namely the Infobot entry-reply formats, the stats reply, and something else he can't remember as of this writing) which were written by oznoid.

GPL
Infobot(Tcl) is distributed under the GNU General Public License (see the included LICENSE file). It has ABSOLUTELY NO WARRANTY WHATSOEVER BY ANY MEANS KNOWN TO MANKIND. While the Bored Zo may choose to help you with your bot, he might also choose otherwise - it's entirely up to him. Speak kindly.

You should have received a copy of the GNU General Public License along with this program; if not, write to:

    Free Software Foundation, Inc.
    59 Temple Place - Suite 330
    Boston, MA
    02111-1307, USA.

You can also obtain the License from <http://www.gnu.org/copyleft/gpl.html>.

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us