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