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