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