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