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