Return-Path: Subject: Re: Infobot Questions To: jkaplan@macsrule.com (Jacob M. Kaplan) Date: Tue, 14 Jul 1998 11:14:35 -0400 (EDT) From: "Kevin A. Lenzo" Cc: lenzo@cs.cmu.edu In-Reply-To: from "Jacob M. Kaplan" at Jul 11, 98 08:16:39 pm X-Mailer: ELM [version 2.4 PL25-40] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 2087 Status: OR Hi -- > > Hey, > > Just a few questions about infobot: > > If infobot quits, it loses it's database of info; is there anyway to stop > it from doing this? It shouldn't lose it. If it does, it's failing to commit the DBM files; this happens on some systems. in files/irc.params, try changing commitDBM 5 to commitDBM 1 ..that might help. > Are the files in factpacts used right away, or do I have to move them > somewhere to use them? Can I make my own factpack? To use the factpacks, you must load them into the database using something like scripts/make_db. for instance scripts/make_db factpacks/code_to_country.txt infobot-is to loaf the code_to_country items. > Why are there infobot-is.db and infobot-are.db files in the main directory > of infobot, and infobot-is.txt and infobot-are.txt files in the files > directory? What's the difference? The .db files (on your system) are the actual databases used at run time. The .txt files are used to initialize the databases the first time you start it up. > Can I edit the database of info directly, or only through telling it to the > bot? You can make a flat file in a format like those in the factpacks directory, then load them with make_db. dump_db does the reverse, converting the DBM files into flat ascii files. Running make_db on an existing database will set the values of the factoids in the input file in the DBM file. Thus, it will overwrite values or add to them, but never subtract. You can dump the entire DBM file to a flat file, edit it, and create a new DBM file from the cleaned data, discarding the old DBM files (.db on your system). This is also good to do every once in a while as it shrinks the overall size of the DBM files, even given the same number of entries. kevin lenzo@cs.cmu.edu > cheers... -Jacob > > -- > Jacob M. Kaplan -- > Columnist, MacSoldiers -- > Contributing Editor, Applelinks.com -- > Attention: Mac is NOT an acronym; spell it Mac, not MAC. Thanks. :-) > >