]> git.donarmstrong.com Git - infobot.git/blob - files/sample/infobot.config
* Missed a few renames from rebranding
[infobot.git] / files / sample / infobot.config
1 # infobot configuration file, modify it to your own taste.  infobot reads
2 # this file from files/infobot.config so it should be moved there.
3
4 #####
5 # Basic IRC info
6 #####
7 set ircNick             infobot
8 set ircUser             infobot
9 set ircName             infobot experimental bot
10 # if your irc network requires a password to get on the servers
11 #set ircPasswd          SomePassword
12 set ircUMode            +iw
13
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          vh.virtualhost.org
17 set ircHost             0.0.0.0
18
19 set owner               OWNER
20
21 # nickserv/chanserv support.
22 ###set nickServ_pass    PASSWORD
23 ###set chanServ_ops     #chan1 #chan2
24
25 # default quit message.
26 set quitMsg             adios amigos
27
28 # path to a temporary directory which infobot can use.
29 set tempDir             /tmp
30
31 #####
32 # Factoid database configuration
33 #####
34
35 # [str] Ability to remember/tell factoids
36 #       none    -- disable.
37 #       mysql   -- ...
38 #       SQLite  -- SQLite (libdbd-sqlite-perl) (might be version 2 or 3)
39 #       SQLite2 -- SQLite (libdbd-sqlite-perl) (force version 2)
40 #       pgsql   -- postgresql (SUPPORTED and TESTED!!!)
41 ### REQUIRED by factoids,freshmeat,karma,seen,...
42 set DBType              mysql
43
44 # [str] SQLite filename prefix // MYSQL/PGSQL database.
45 #       eg: infobot-factoids, infobot-seen
46 #       eg: /var/db/mysql/infobot/factoids.*
47 set DBName              infobot
48
49 # [str] Hostname of database server (unset for SQLite)
50 set SQLHost             localhost
51
52 # [str] SQL user allowed to insert,update,delete stuff from tables. (unset for SQLite)
53 set SQLUser             infobot
54
55 # [str] SQL password. (unset for SQLite)
56 set SQLPass             PASSWORD
57
58 # [str] SQL debug file. "-" for stdout may work on some platforms
59 ###set SQLDebug         SQL_debug.log
60
61 #####
62 # Logfile configuration
63 #####
64
65 # [file] where to put logging info. comment out to disable.
66 #set logfile            log/$ircUser.log
67 set logfile             log/
68
69 # [str] Type of logging.
70 #   DAILY       -- Create a new log each day.
71 #   DEFAULT     -- One continuous log file.
72 set logType             DAILY
73
74 # [int] Maximum log size, if logfile is defined, in bytes.
75 set maxLogSize          10000000
76
77 #####
78 # Factoid-related configuration
79 #####
80
81 # [bool] Factoid support.
82 set factoids            true
83
84 # [days] if not 0, number of days until factoid is deleted for good.
85 set factoidDeleteDelay  0
86
87 # [int] maximum length of factoid key.
88 set maxKeySize          32
89
90 # [int] maximum length of factoid value.
91 set maxDataSize         450
92
93 # [str] when should the bot bother learning new factoids.
94 #   ADDRESSED   -- only learn when addressed.
95 #   HUNGRY      -- learn irrelevent of addressing. this will catch
96 #                  _everything_, use at your own risk.
97 set learn               ADDRESSED
98
99 # [str] different behaviour with URLs.
100 #   REQUIRE     -- means it will need to be a url type (e.g. file:, http:)
101 #   OPTIONAL    -- will take anything
102 #   REJECT      -- will not accept any urls.  this makes it easy to
103 #                  run 2 with different nicks and styles.
104 #                  ^^^ what's the point of this???
105 set acceptUrl           OPTIONAL
106
107 # [bool] profanity checking.
108 set profanityCheck      false
109
110 # [0/1] tell so-and-so about such-and-such of a factoid.
111 set allowTelling        1
112
113 # [str] other bots to ask for factoids which they may have.
114 #set friendlyBots       url purl script mrapi
115
116 #####
117 # Factoid related and unrelated features, mainly Extras.
118 #####
119
120 # [str] addressing is when you name the bot. FIXME:
121 #   REQUIRE     -- the bot only does something if addressed.
122 #   OPTIONAL    -- the bot responds (does not learn) irrelevent of
123 #                  addressing.
124 set addressing          REQUIRE
125
126 # [str] how the bot should send messages.
127 #   PRIVATE     -- reply to private messages only, rejecting public msgs.
128 #   DEFAULT     -- reply to public _and_ private queries.
129 set talkMethod          DEFAULT
130
131 # [str] how long the output string should be before it is changed from
132 #       public to private.
133 #       "+" before bot commands overrides this option temporarily.
134 ###set minLengthBeforePrivate 192
135
136 # [0/1] allow people outside any channels the bot is on to use the bot
137 #       for factoids and commands.
138 set disallowOutsiders   1
139
140 # [int] Amount of time for auto-ignore (flooding) to expire.
141 set ignoreAutoExpire    5
142
143 # [int] Amount of time for forced-online ignore to expire. minutes.
144 set ignoreTempExpire    60
145
146 #####
147 # Internal (simple) bot commands
148 #####
149
150 # [0/1] Forking... disable for non-nix OS or to reduce mem usage.
151 #       Disabling should make the bot work on Win32 and MacOS.
152 set forking             1
153
154 # [int] Backlog... ideal to see what happened to the bot on console.
155 #       maximum number of lines to backlog.
156 set backlog             24
157
158 #####
159 # Extra features
160 #####
161
162 # [str] anything which requires LWP + http proxy.
163 ###set httpProxy                http://HOSTNAME:PORT/
164
165 # [0/1] countdown to specific dates
166 set countdown           true
167
168 # [0/1] Debian file and package search.
169 # FIXME: should be a channel option
170 set Debian              true
171
172 # [0/1] Freshmeat
173 set freshmeat           false
174 # [int] how often to update the freshmeat table, in hours.
175 set freshmeatRefreshInterval 24
176
177 # [bool] if factoid does not exist, check freshmeat for it.
178 set freshmeatForFactoid         false
179
180 # [0/1] Uptime logs
181 set Uptime              true
182
183 #####
184 # Miscellaneous configuration options
185 #####
186
187 # [int] Display a bit too much info about stuff.
188 #   0   -- disable.
189 #   1   -- standard.
190 #   2   -- extra.
191 set VERBOSITY           1
192
193 # [0/1] Warn messages.
194 set WARN                1
195
196 # [0/1] Debugging messages.
197 set DEBUG               0
198
199 # [0/1] Work In Progress...
200 set WIP                 0
201
202 # strict perl?
203 set useStrict           1
204
205 # debugging...
206 ###set DumpVars         1
207 ###set dumpvarsAtExit   1
208 # log to specific file or global log file.
209 ###set dumpvarsLogFile  dumpvars.log
210 # more debugging
211 ###set DumpVars2                1
212 ###set symdumpLogFile   log/dumpvars2.log
213
214 # [str] Interface: [IRC/CLI]
215 #   IRC         -- Internet Relay Chat
216 #   CLI         -- Command Line Interface
217 set Interface           IRC
218
219 # [0/1] Show topic author (troubled)
220 # If 1, topics managed with !topic add foo will show the nick in ()'s
221 # If 0, the nick of the creator will be recorded for !topic list, but not shown in the topic itself
222 set topicAuthor 1
223
224 ####
225 # Now modify infobot.chan for per-channel specific configuration see
226 # sample.chans for info.
227 ####