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