]> git.donarmstrong.com Git - infobot.git/blob - files/sample/blootbot.config
chan vars: minVolunteerLength allowConv karma lart Quote RootWarn rootWarnMode search...
[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             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 set logfile             log/
67
68 # [str] Type of logging.
69 #   DAILY       -- Create a new log each day.
70 #   DEFAULT     -- One continuous log file.
71 set logType             DAILY
72
73 # [int] Maximum log size, if logfile is defined, in bytes.
74 set maxLogSize          10000000
75
76 #####
77 # Factoid-related configuration
78 #####
79
80 # [bool] Factoid support.
81 set factoids            true
82
83 # [days] if not 0, number of days until factoid is deleted for good.
84 set factoidDeleteDelay  0
85
86 # [int] maximum length of factoid key.
87 set maxKeySize          32
88
89 # [int] maximum length of factoid value.
90 set maxDataSize         450
91
92 # [str] when should the bot bother learning new factoids.
93 #   ADDRESSED   -- only learn when addressed.
94 #   HUNGRY      -- learn irrelevent of addressing. this will catch
95 #                  _everything_, use at your own risk. I tried this ages
96 #                  ago and it caught quite funny responses but who knows
97 #                  if my modifications will prevent this or not, perhaps
98 #                  IsInvalid must be disabled?
99 set learn               ADDRESSED
100
101 # [str] different behaviour with URLs.
102 #   REQUIRE     -- means it will need to be a url type (e.g. file:, http:)
103 #   OPTIONAL    -- will take anything
104 #   REJECT      -- will not accept any urls.  this makes it easy to
105 #                  run 2 with different nicks and styles.
106 #                  ^^^ what's the point of this???
107 set acceptUrl           OPTIONAL
108
109 # [bool] profanity checking.
110 set profanityCheck      false
111
112 # [0/1] tell so-and-so about such-and-such of a factoid.
113 set allowTelling        1
114
115 # [str] other bots to ask for factoids which they may have.
116 #set friendlyBots       url purl script mrapi
117
118 #####
119 # Factoid related and unrelated features, mainly Extras.
120 #####
121
122 # [str] addressing is when you name the bot. FIXME:
123 #   REQUIRE     -- the bot only does something if addressed.
124 #   OPTIONAL    -- the bot responds (does not learn) irrelevent of
125 #                  addressing.
126 set addressing          REQUIRE
127
128 # [char] One-character easy recognition.
129 set addressCharacter    ~
130
131 # [str] how the bot should send messages.
132 #   PRIVATE     -- reply to private messages only, rejecting public msgs.
133 #   DEFAULT     -- reply to public _and_ private queries.
134 set talkMethod          DEFAULT
135
136 # [str] how long the output string should be before it is changed from
137 #       public to private.
138 #       "+" before bot commands overrides this option temporarily.
139 ###set minLengthBeforePrivate 192
140
141 # [0/1] allow people outside any channels the bot is on to use the bot
142 #       for factoids and commands.
143 set disallowOutsiders   1
144
145 # [int] Amount of time for auto-ignore (flooding) to expire.
146 set ignoreAutoExpire    5
147
148 # [int] Amount of time for forced-online ignore to expire. minutes.
149 set ignoreTempExpire    60
150
151 #####
152 # Internal (simple) bot commands
153 #####
154
155 # [0/1] Forking... disable for non-nix OS or to reduce mem usage.
156 #       Disabling should make the bot work on Win32 and MacOS.
157 set forking             1
158
159 # [int] Backlog... ideal to see what happened to the bot on console.
160 #       maximum number of lines to backlog.
161 set backlog             24
162
163 #####
164 # Extra features
165 #####
166
167 # [str] anything which requires LWP + http proxy.
168 ###set httpProxy                http://HOSTNAME:PORT/
169
170 # [0/1] offer free factoid cookies
171 set cookie              true
172
173 # [0/1] countdown to specific dates
174 set countdown           true
175
176 # [0/1] Debian file and package search.
177 # FIXME: should be a channel option
178 set Debian              true
179
180 # [0/1] Freshmeat
181 set freshmeat           false
182 # [int] how often to update the freshmeat table, in hours.
183 set freshmeatRefreshInterval 24
184
185 # [bool] if factoid does not exist, check freshmeat for it.
186 set freshmeatForFactoid         false
187
188 # [0/1] Frontend to kernel.org
189 set kernel              true
190
191 # [0/1] Display random text in the channel.
192 set randomQuote         true
193
194 # [0/1] Display random text in the channel.
195 set randomFactoid       true
196
197 # [0/1] keeps stats on individual commands
198 set stats               true
199
200 # [0/1] Uptime logs
201 set Uptime              true
202
203 #####
204 # Miscellaneous configuration options
205 #####
206
207 # [int] Display a bit too much info about stuff.
208 #   0   -- disable.
209 #   1   -- standard.
210 #   2   -- extra.
211 set VERBOSITY           1
212
213 # [0/1] Warn messages.
214 set WARN                1
215
216 # [0/1] Debugging messages.
217 set DEBUG               0
218
219 # [0/1] Work In Progress...
220 set WIP                 0
221
222 # strict perl?
223 set useStrict           1
224
225 # debugging...
226 ###set DumpVars         1
227 ###set dumpvarsAtExit   1
228 # log to specific file or global log file.
229 ###set dumpvarsLogFile  dumpvars.log
230 # more debugging
231 ###set DumpVars2                1
232 ###set symdumpLogFile   log/dumpvars2.log
233
234 # [str] Interface: [IRC/CLI]
235 #   IRC         -- Internet Relay Chat
236 #   CLI         -- Command Line Interface
237 set Interface           IRC
238
239 ####
240 # Now modify blootbot.chan for per-channel specific configuration see
241 # sample.chans for info.
242 ####