]> git.donarmstrong.com Git - infobot.git/blob - files/sample/sample.config
remove Berkeley DBM support
[infobot.git] / files / sample / sample.config
1 # blootbot configuration file, modify it to your own taste.  blootbot reads
2 # this file from files/blootbot.config so it should be moved there.
3
4 #####
5 # Basic IRC info
6 #####
7 set ircNick             blootbot
8 set ircUser             blootbot
9 set ircName             blootbot experimental bot
10 set ircUMode            +iw
11 ###set ircHost          vh.virtualhost.org
12
13 set owner               OWNER
14
15 # nickserv/chanserv support.
16 ###set nickServ_pass    PASSWORD
17 ###set chanServ_ops     #chan1 #chan2
18
19 # default quit message.
20 set quitMsg             adios amigos
21
22 # path to a temporary directory which blootbot can use.
23 set tempDir             /home/blootbot/Temp
24
25 #####
26 # Factoid database configuration
27 #####
28
29 # [str] Ability to remember/tell factoids
30 #       none    -- disable.
31 #       mysql   -- ...
32 #       SQLite  -- SQLite (libdbd-sqlite-perl)
33 #       pgsql   -- postgresql (NOT SUPPORTED)
34 ### REQUIRED by factoids,freshmeat,karma,seen,...
35 set DBType              mysql
36
37 # [str] SQLite filename prefix // MYSQL/PGSQL database.
38 #       eg: blootbot-factoids, blootbot-seen
39 #       eg: /var/db/mysql/blootbot/factoids.*
40 set DBName              blootbot
41
42 # [str] Hostname of database server (unset for SQLite)
43 set SQLHost             localhost
44
45 # [str] SQL user allowed to insert,update,delete stuff from tables. (unset for SQLite)
46 set SQLUser             blootbot
47
48 # [str] SQL password. (unset for SQLite)
49 set SQLPass             PASSWORD
50
51 # [str] SQL debug file.
52 ###set SQLDebug         SQL_debug.log
53
54 #####
55 # Logfile configuration
56 #####
57
58 # [file] where to put logging info. comment out to disable.
59 set logfile             log/$ircUser.log
60
61 # [str] Type of logging.
62 #   DAILY       -- Create a new log each day.
63 #   DEFAULT     -- One continuous log file.
64 set logType             DAILY
65
66 # [int] Maximum log size, if logfile is defined, in bytes.
67 set maxLogSize          10000000
68
69 #####
70 # Factoid-related configuration
71 #####
72
73 # [bool] Factoid support.
74 set factoids            true
75
76 # [days] if not 0, number of days until factoid is deleted for good.
77 set factoidDeleteDelay  0
78
79 # [int] maximum length of factoid key.
80 set maxKeySize          32
81
82 # [int] maximum length of factoid value.
83 set maxDataSize         450
84
85 # [int] minimum length of unaddressed (message) question without question
86 #       before it is answered involuntarily.
87 #       This ignores the 'addressing' setting.
88 #       0 to disable.
89 set minVolunteerLength  0
90
91 # [str] when should the bot bother learning new factoids.
92 #   ADDRESSED   -- only learn when addressed.
93 #   HUNGRY      -- learn irrelevent of addressing. this will catch
94 #                  _everything_, use at your own risk. I tried this ages
95 #                  ago and it caught quite funny responses but who knows
96 #                  if my modifications will prevent this or not, perhaps
97 #                  IsInvalid must be disabled?
98 set learn               ADDRESSED
99
100 # [str] different behaviour with URLs.
101 #   REQUIRE     -- means it will need to be a url type (e.g. file:, http:)
102 #   OPTIONAL    -- will take anything
103 #   REJECT      -- will not accept any urls.  this makes it easy to
104 #                  run 2 with different nicks and styles.
105 #                  ^^^ what's the point of this???
106 set acceptUrl           OPTIONAL
107
108 # [bool] profanity checking.
109 set profanityCheck      false
110
111 # [0/1] tell so-and-so about such-and-such of a factoid.
112 set allowTelling        1
113
114 # [str] other bots to ask for factoids which they may have.
115 #set friendlyBots       url purl script mrapi
116
117 #####
118 # Factoid related and unrelated features, mainly Extras.
119 #####
120
121 # [str] addressing is when you name the bot. FIXME
122 #   REQUIRE     -- the bot only does something if addressed.
123 #   OPTIONAL    -- the bot responds (does not learn) irrelevent of
124 #                  addressing.
125 set addressing          REQUIRE
126
127 # [char] One-character easy recognition.
128 set addressCharacter    ~
129
130 # [str] how the bot should send messages.
131 #   PRIVATE     -- reply to private messages only, rejecting public msgs.
132 #   DEFAULT     -- reply to public _and_ private queries.
133 set talkMethod          DEFAULT
134
135 # [str] how long the output string should be before it is changed from
136 #       public to private.
137 #       "+" before bot commands overrides this option temporarily.
138 ###set minLengthBeforePrivate 192
139
140 # [int] maximum length of reply for Extras function before popping list to
141 #       reduce number of elements.
142 set maxListReplyLength  450
143
144 # [int] maximum number of elements in list allowed for Extras function
145 #       before popping elements to reduce total count.
146 set maxListReplyCount   15
147
148 # [0/1] allow people outside any channels the bot is on to use the bot
149 #       for factoids and commands.
150 set disallowOutsiders   1
151
152 # [int] time, in seconds. (different messages)
153 set floodMessages       10:30
154 # [int] same messages.
155 set floodRepeat         2:10
156
157 # [int] Amount of time for auto-ignore (flooding) to expire.
158 set ignoreAutoExpire    5
159
160 # [int] Amount of time for forced-online ignore to expire. minutes.
161 set ignoreTempExpire    60
162
163 #####
164 # Internal (simple) bot commands
165 #####
166
167 # [0/1] irc-cli calculator.
168 set perlMath            1
169
170 # [0/1] ord/chr etc
171 set allowConv           1
172
173 # [0/1] do you want to allow DNS lookup
174 set allowDNS            1
175
176 # [0/1] Forking... disable for non-nix OS or to reduce mem usage.
177 #       Disabling should make the bot work on Win32 and MacOS.
178 set forking             1
179
180 # [int] Backlog... ideal to see what happened to the bot on console.
181 #       maximum number of lines to backlog.
182 set backlog             24
183
184 #####
185 # Extra features
186 #####
187
188 # [str] anything which requires LWP + http proxy.
189 ###set httpProxy                http://HOSTNAME:PORT/
190
191 # [0/1] babelfish translator.  jdf++.
192 set babelfish           true
193
194 # [0/1] offer free factoid cookies
195 set cookie              true
196
197 # [0/1] Countdown to specific dates
198 set countdown           true
199
200 # [0/1] Debian file and package search.
201 set debian              false
202 # [int] how often to update the debian table, in days.
203 set debianRefreshInterval 1
204 # [0/1] extra stuff...
205 set debianExtra         true
206
207 # [0/1] Frontend to dict.org's wordnet.
208 set dict                false
209
210 # [0/1] Freshmeat
211 set freshmeat           false
212 # [int] how often to update the freshmeat table, in hours.
213 set freshmeatRefreshInterval 24
214
215 # [bool] if factoid does not exist, check freshmeat for it.
216 set freshmeatForFactoid         false
217
218 # [0/1] insult server
219 set insult              false
220
221 # [0/1] karma
222 set karma               true
223
224 # [0/1] Frontend to kernel.org
225 set kernel              false
226
227 # [0/1] LART.
228 set lart                true
229
230 # [0/1] nickometer
231 set nickometer          true
232
233 # [0/1] Frontend to the stock market.
234 set quote               false
235
236 # [0/1] Display random text in the channel.
237 set randomQuote         true
238
239 # [int] Interval (or more than), in minutes.
240 set randomQuoteInterval 60
241
242 # [0/1] Display random text in the channel.
243 set randomFactoid       true
244
245 # [int] Interval (or more than), in minutes.
246 set randomFactoidInterval       60
247
248 # [0/1] Warn users about root.
249 set rootWarn            false
250 #   passive     -- be polite plus stuff, compliant to OPN, heh.
251 #   aggressive  -- ...
252 set rootWarnMode        passive
253
254 # [0/1] Factoid search.
255 set search              false
256
257 # [0/1] persistant "seen".
258 set seen                true
259 # [0/1] seen statistics for online users like idle time, total message
260 #       count.
261 set seenStats           true
262 # [int] if someone's been away for more than xx days, delete their info.
263 #       info.
264 set seenMaxDays         30
265 # [int] interval to flush cached seen info. in minutes.
266 set seenFlushInterval   60
267 # [bool] store all information, irrevelent of addressing.
268 #       may chew more CPU.
269 #       Will encourage severe leakaged (2-3x), caused by mysql-perl?
270 set seenStoreAll        1
271
272 # [0/1] keeps stats on individual commands
273 set stats               true
274
275 # [0/1] slashdot headlines.
276 set slashdot            false
277
278 # [0/1] frontend to ispell.
279 set spell               false
280
281 # [0/1] Advanced topic management.
282 set topic               true
283
284 # [0/1] User Information Services.
285 set userinfo            true
286
287 # [0/1] Uptime daemon
288 set uptime              true
289
290 # [0/1] Wingate checking and banning mechanism. FIXME.
291 ###set wingate          false
292 # [int] seconds. minimum time to check.
293 set wingateInterval     60
294 # [str] Wingate.
295 set wingateBan          true
296 # [str] Wingate.
297 set wingateKick         Please don't use wingate
298
299 # [0/1] google search.. simon++. requires libwww-search-perl + 5lines of
300 #       modifications.
301 set wwwsearch           false
302
303 # [0/1] Unit conversion tool.
304 set units               true
305
306 #####
307 # Miscellaneous configuration options
308 #####
309
310 # [int] Display a bit too much info about stuff.
311 #   0   -- disable.
312 #   1   -- standard.
313 #   2   -- extra.
314 set VERBOSITY           1
315
316 # [0/1] Warn messages.
317 set WARN                1
318
319 # [0/1] Debugging messages.
320 set DEBUG               0
321
322 # [0/1] Work In Progress...
323 set WIP                 0
324
325 # strict perl?
326 set useStrict           1
327
328 # debugging...
329 ###set dumpvars         1
330 ###set dumpvarsAtExit   1
331 # log to specific file or global log file.
332 ###set dumpvarsLogFile  dumpvars.log
333
334 # [str] Interface: [IRC/CLI]
335 #   IRC         -- Internet Relay Chat
336 #   CLI         -- Command Line Interface
337 set Interface           IRC
338
339 ####
340 # Now modify blootbot.chan for per-channel specific configuration see
341 # sample.chans for info.
342 ####