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