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