From ef39fddb7f57fd75471e2c676a40efd3fb1a3291 Mon Sep 17 00:00:00 2001 From: djmcgrath Date: Tue, 23 Oct 2007 06:45:48 +0000 Subject: [PATCH] * New pod doc for infobot.config git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1593 c11ca15a-4712-0410-83d8-924469b57eb5 --- doc/infobot.config.pod | 457 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 457 insertions(+) create mode 100644 doc/infobot.config.pod diff --git a/doc/infobot.config.pod b/doc/infobot.config.pod new file mode 100644 index 0000000..cbbbb2f --- /dev/null +++ b/doc/infobot.config.pod @@ -0,0 +1,457 @@ +=pod + +=head1 NAME + +infobot.config - Main infobot configuration file + +=head1 SYNOPSIS + +B EBE EBE + +=head1 DESCRIPTION + +This file is the main configuration file for your bot. Empty lines are ignored +as usual, and any lines which start with a C<#> are treated as comments. + +When you first setup your infobot, you should start by copying the sample file, +found in S> to the +S> directory. Once this is done, start up your favorite +editor and carefully go over the settings one by one, before you attempt to +start your bot. + +Fields that are commented out by default, are typically not needed. Use your +own judgement. + +=head1 OPTIONS + +Below is a list of the variables that infobot currently recognises, along with +a short blurb about each. + +=head2 Basic IRC info + +=over + +=item B EBE + +The name that you want your infobot to appear as on B. + +=item B EBE + +The ident reply that you want your infobot to send if you don't already have a +running ident daemon on your system. + +=item B EBE + +This sets the name that appears as "Real Name" when someone does a C on +your infobot's nick on B. + +=item B EBE + +If this variable is set, then the server will send it when connecting to the +B server. Most networks only use this for server administrators to gain +their operator status. However, B (B) uses +this server password to identify you automatically to nickserv on connect. + +=item B EB<+>|B<->EEBE[EB<+>|B<->EEBE...] + +This is a list of user modes that the infobot should attempt to set after it +has established a connection with the B server. + +=item B EB|BE + +Typically this setting isn't used. However, if you have a muti-homed server +(multiple network cards), and you don't want your bot to use the default route +out of the network, you can set this to the B or B of the +interface that you want it to use when connecting to B. + +=item B EBE + +Set this to the nick that matches the name of the account that you set in the +F file for yourself. + +I + +=item B EBE + +If the server your bot is connecting to supports nick services, you can set the +password here that will be used to identify itself with. + +=item B EB<#chan1>E [EB<#chan2>E ... EB<#chanN>E] + +If the server your bot is connecting to supports channel services, you can set +a space seperated list of channels that the bot should automatically request +B in. Currently, the bot uses the format: S> +for each channel in the list, after it has sucessfully joined the channel. + +=item B EBE + +When your bot intentionally disconnects from a server, it will display the +following quit reason to users who see it quit. + +I + +=item B EBE + +This sets a path to a temporary directory which infobot can use. Most people +find this best set to F. + +=back + +=head2 Factoid database configuration + +=over + +=item B EB|B|B|B|BE + +If you have enabled factoid support, this setting will control the backend +database that you use to save factoids and other various information. + +If you choose SQLite or SQLite2, you will need to ensure that you have +installed S on your system. Also, SQLite will support a +version 2 or 3 of the library, where as SQLite2 will force the bot to use +version 2 specifically. + +I type actually work without breaking non factoid related> +I + +=item B EB|BE + +If you have database support enabled, this setting will tell the bot what +database it should use. If you are using SQLite, it should be set to the +directory where you want to store the database files on disk. + +I + +=item B EB|BE + +If you are using a database, this specifies the name of the host that the +database resides on. If you are using SQLite, this value should be commented +out. + +I + +=item B EBE + +If you are using a database, this specifies the user name that the bot should +use to login with. If you are using SQLite, this value should be commented out. + +I + +=item B EBE + +If you are using a database, this specifies the password that the bot should +use to login with. If you are using SQLite, this value should be commented out. + +I + +=item B EBE + +If you are using a database, this specifies the filename that you wish to log +all B commands to. On some platforms, you may be able to use a "-" to +specify B so that it displays on the console instead. + +=back + +=head2 Logfile configuration + +These settings control the various aspects of how the bot logs the console. + +=over + +=item B EB|BE + +This setting tells the bot where to log everything you see on the console +screen. You can optionally use a variable such as B<$ircUser> in the filename +if you want to name the logs after the name of the bot. If this setting is left +out, logging is disabled. + +I + +=item B EB|B + +If you have enabled logging, this setting will determine if the log file should +be rotated on a daily basis, or use on continuous file. + +I + +=item B EBE + +If you have enabled logging, this setting will determine the maximum size of +the log file. The size should be specified in bytes. A reasonable size is +10000000 (10MB). + +I + +=back + +=head2 Factoid-related configuration + +These settings govern how factoids are managed. + +=over + +=item B EB|BE + +This is a boolean value that decides if you want factoid support enabled for +your bot. Typically you want you leave this enabled. + +=item B EBE + +When you delete a factoid, it isn't immediately removed. Instead, the factoid +key is renamed with a "#DEL#" appended to it. This allows you to undelete +factoids that were erased by accident. + +If you have factoid support enabled, this setting will determine how long +deleted factoids stay in the database before they are automatically purged. A +value of B<0> will disable auto purging of deleted factoids. + +=item B EBE + +If you have factoid support enabled, this value determines the maximum length +of the factoid key. + +=item B EBE + +If you have factoid support enabled, this value determines the maximum length +of the value for a factoid key. + +=item B EB|BE + +If you have factoid support enabled, this value determines how the bot reacts +to public chatter. + +In B mode, the bot will only learn the factoid if you address it +specifically by name S<(eg: Botname: ...)>, or by B. This is the +recommended mode. + +In B mode, the bot will take assuming everything said is an attempt to +talk with the bot. This includes things like welcoming you when you say thanks +and other various spam. This will also tend to catch useless garbage in your +database since the word "is" will be recognised as an attempt to teach it a new +factoid. Use at your own risk. ;) + +=item B EB|B|BE + +The bot has the ability to recognize B's. This setting will control what +it accepts as a B. + +In B mode, the bot will need the protocol to be specifically mentioned +for it to be considered (eg: file://, http://). + +In B mode, the bot will accept just about anything. + +In B mode, the bot will not accept any B's. This makes it easy to +run with different nicks and styles. + +I + +=item B EB|BE + +This determines if the bot should accept or reject factoids which contain foul +language. + +=item B EB|BE + +The the has the ability for people to ask the bot to tell someone else about +one of its factoids. This setting controls if that is allowed or not. + +=item B [B [B ... B]] + +An infobot has a built in protocol which allows them to communicate with each +other. If a user asks your bot for a factoid that doesnt exist, the bot will +attempt to ask each bot in this space seperated list for it. If one of the +bots has an answer, your bot will save it to its database, and tell it to the +person who requested it. + +I +I + +=back + +=head2 Factoid related and unrelated features, mainly Extras. + +These settings are basically stuff that doesn't fit anywhere else. + +=over + +=item B EB|BE + +This setting controls how your bot responds (not related to learning factoids) +to people saying stuff in a channel. With B, the bot will only say +something if it is addressed (via nick or trigger). With B, the bot +will respong (not learn) irrelevent of addressing. + +=item B EB|BE + +This setting controls how the bot should send messages. With B, the +bot will reply to private messages only, rejecting public messags. With +B, the bot will reply to publid and private queries. + +=item B EBE + +This will determine how long the output string of a reply should be before it +is changed from public response, to a private message. A value of B<192> is +recommended. You can disable this feature by commenting out the setting. + +=item B EB|BE + +This setting, if enabled, will allow people outside and channels that your bot +is on to use the bot. + +=item B EBE + +This setting controls the amount of time for auto-ignore (flooding) to expire. + +=item B EBE + +This controls the amount of time for forced-online ignore to expire in minutes. + +=back + +=head2 Internal (simple) bot commands + +=over + +=item B EB|BE + +The controls forking in the bot. This should be disabled for non-nix operating +systems, or to reduce memory usage. Disabling should also make the bot work on +Win32 and MacOS. + +=item B EBE + +This controls the maximum number of lines to use for a backlog buffer on the +console. Fairly handy for looking back a page or two to see what the bot is +doing. Typically not needed when used with screen sessions. + +=back + +=head2 Extra features + +=over + +=item B EBE + +This proxy is used for any module in the bot which requires LWP + http proxy. + +=item B EB|BE + +This determines if the bot should use the countdown file to remember and +announce special dates. + +=item B EB|BE + +This setting controls the Debian module for file and package searching. If it +is enabled, users of the bot will be allowed to search, otherwise it will be +completly disabled. + +=item B EB|BE + +The bot has the ability to search B for packages. This setting +controls if that is enabled or not. + +=item B EBE + +If the B search is enabled, this setting will control how often +the bot should update the index in hours. + +=item B EB|BE + +If B is enabled as well as this setting, the bot will search +freshmeat for factoids which do not exist. + +=item B EB|BE + +This controls if the bot should store uptime records or not. + +=back + +=head2 Miscellaneous configuration options + +=over + +=item B EB<0>|B<1>|B<2>E + +Controls how verbose the console output should be. A setting of B<0> will +disable verbosity. A setting of B<1> will give standard information. And a +setting of B<2> will give you extra information. + +=item B EB|BE + +This setting controls if the bot console will display warning messages or not. + +=item B EB|BE + +If the bot console should display debugging messages or not. + +=item B EB|BE + +If the bot should activate work in progress (experimental) features. + +I + +=item B EB|BE + +This setting controls if the bot should "use strict" in its code. Handy to have +enabled for catching problems in the code. Best leave this enabled. + +=item B EB|BE + +This controls the interface that the bot should use. Most people will want to +use B which connects the bot to an IRC server. Optionally, you can setup a +standalone bot by setting this to B. In B mode, the bot will not +connect to a server, but instead allow you to use it on the console as if it +were being used in a private message on IRC. + +=item B EB|BE + +This setting controls how the bot adds topic's in a channel. If enabled, topics +managed with !topic add foo, will show the nick of the person who set it with +the format: "foobar (nick)" in ()'s. If it is disabled, only the topic will be +added, not the creator. + +=back + +=head2 Debugging + +=over + +=item B EB|BE + +If the bot should dump its variables or not. + +=item B EB|BE + +If the bot should dump its variables when it shuts down. + +=item B EBE + +If the dumped variables should go to a sepcific log file. + +=item B EB|BE + +If the bot should dump extra variables. + +=item B EBE + +The file the extra variables should be dumped to. + +=back + +=head1 BUGS + +There is a lot of upper/lower case issues with some of the variables. It is not +know if and or all of them are case sensitive. Also, Many of the original +settings ask for "[0|1]", and depending on how the code is written, a B +or B may not work for certain variables. This is considered a B, +and should be reported as such. + +=head1 CONTACT + +If you need to contact us to submit patches or whatever, please try out mailing +list available at S>. If you would +rather a more realtime conversation with us, we can be found in the B<#infobot> +channel on the B network (B). + +=cut + -- 2.39.2