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