]> git.donarmstrong.com Git - infobot.git/blob - files/sample/sample.config
a9286857042afb2309a9441d111f881aa4fdf2f2
[infobot.git] / files / sample / 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
16 set owner               xk
17
18 # nickserv/chanserv support.
19 ###set nickServ_pass    PASSWORD
20
21 # default quit message
22 set quitMsg             BEE RICHT BAK
23
24 # temp directory.
25 set tempDir             /home/blootbot/Temp
26
27 #####
28 # logfile
29 #####
30
31 # [file] where to put logging info. comment out to disable.
32 set logfile             log/$ircUser.log
33
34 # [str] Type of logging.
35 #   DAILY       -- Create a new log each day.
36 #   DEFAULT     -- One continuous log file.
37 set logType             DAILY
38
39 # [int] Maximum log size, if logfile is defined, in bytes.
40 set maxLogSize          10000000
41
42 #####
43 # Factoid DB Configuration
44 #####
45
46 # [str] Ability to remember/tell factoids
47 #       none    -- disable.
48 #       mysql   -- ...
49 #       pgsql   -- postgresql (NOT SUPPORTED)
50 #       dbm     -- berkeley dbm (SHOULD WORK 95%)
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] mysql user allowed to insert,update,delete stuff from tables.
62 set SQLUser             blootbot
63
64 # [str] mysql password.
65 set SQLPass             bl00tb0t
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 # [days] After what time will deleted factoids will be deleted.
78 set factoidDeleteDelay  0
79
80 # [int] maximum length of factoid key.
81 set maxKeySize          32
82
83 # [int] maximum length of factoid value.
84 set maxDataSize         450
85
86 # [int] minimum length of unaddressed (message) question without question
87 #       before it is answered involuntarily.
88 #       This ignores the 'addressing' setting.
89 #       0 to disable.
90 set minVolunteerLength  0
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 # [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 # should work. FIXME.
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.
135 #       "+" before bot commands overrides this option temporarily.
136 ###set minLengthBeforePrivate 192
137
138 # [int] maximum length of reply for Extras function before popping list to
139 #       reduce number of elements.
140 set maxListReplyLength  300
141
142 # [int] maximum number of elements in list allowed for Extras function
143 #       before popping elements to reduce total count.
144 set maxListReplyCount   15
145
146 # [0/1] allow people outside any channels the bot is on to use the bot
147 #       for factoids and commands.
148 set disallowOutsiders   1
149
150 # [int] Amount of time for auto-ignore (flooding) to expire.
151 set ignoreAutoExpire    5
152
153 # [int] Amount of time for forced-online ignore to expire. minutes.
154 set ignoreTempExpire    60
155
156 #####
157 # Internal (simple) bot commands
158 #####
159
160 # [0/1] Forking... disable for non-nix OS or to reduce mem usage.
161 #       Disabling should make the bot work on Win32 and MacOS.
162 set forking             1
163
164 # [int] Backlog... ideal to see what happened to the bot on console.
165 #       maximum number of lines to backlog.
166 set backlog             24
167
168 #####
169 # Miscellaneous...
170 #####
171
172 # [int] Display a bit too much info about stuff.
173 #   0   -- disable.
174 #   1   -- standard.
175 #   2   -- extra.
176 set VERBOSITY           1
177
178 # [0/1] Warn messages.
179 set WARN                1
180
181 # [0/1] Debugging messages.
182 set DEBUG               1
183
184 # [0/1] Work In Progress...
185 set WIP                 0
186
187 # debugging...
188 ###set dumpvars         1
189 ###set dumpvarsAtExit   1
190 # log to specific file or global log file.
191 ###set dumpvarsLogFile  dumpvars.log
192
193 # [0/1] allow 'use strict', makes bot unreliable.
194 set useStrict           0
195
196 #####
197 # Extras
198 #####
199
200 set uptime              1
201
202 # [str] anything which requires LWP + http proxy.
203 set httpProxy http://router.home.org:3128/
204
205 ####
206 #### now modify blootbot.chans for per-channel specific configuration
207 #### see sample.chans for info.
208 ####
209
210 set allowConv           1