]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blob - ChangeLog
update ChangeLog
[user/henk/code/ruby/rbot.git] / ChangeLog
1 Wed Jul 20 01:18:06 BST 2005  Tom Gilbert <tom@linuxbrit.co.uk>
2
3         * Add new httputil object to the bot object, to be used by plugins etc
4         that wish to make http requests. It sets up all the proxies etc for them
5         according to bot config.
6
7 Sat Jul 16 02:23:13 BST 2005  Tom Gilbert <tom@linuxbrit.co.uk>
8
9   * Apply most of Rene's patch and fix various plugins.
10         * New plugin: autoop (auto ops via hostmask)
11         * New feature: karmastats
12
13 Wed Oct 13 16:16:31 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
14
15   * Fix bug with quotes plugin where it gets confused and sees both a quote
16   and a keyword, both plugins are triggered by, for example "addquote foo is
17   bar"
18   * fixed this by implementing the "has_responded" flag on a message. When a
19   plugin replied to a message (or it manually sets m.replied to true), the
20   keywords plugin will honour that flag and not examine the message for
21   keywords. This flag can also be checked by listen plugins that don't want to
22   interfere with other plugin commands.
23
24 Mon Oct 11 00:37:52 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
25
26   * Fixes to the NickServ plugin
27
28 Sat Oct 09 23:23:24 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
29
30   * Keyword searching
31
32 Fri Oct 08 00:40:07 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
33
34   * fixed insult plugin
35   * fixed excuse plugin
36
37 Thu Oct 07 23:28:05 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
38
39   * searching for urls in the url plugin
40   * roshambo (rock/paper/scissors) plugin from Hans Fugal <hans@fugal.net>
41
42 Sat Apr 17 20:56:50 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
43
44   * Oh, found new tv plugin in my inbox from ages ago, but it's still not
45   working so I guess it changed again since then
46   * New eightball plugin from Daniel Free
47
48 Sat Apr 17 20:44:43 BST 2004  Tom Gilbert <tom@linuxbrit.co.uk>
49
50   * Fixed the babelfish parser so translate works again.
51   * Misc other fixes
52   * Note some plugins are broken (excuse,insult) because the server they use
53     went away. I don't know of a replacement right now.
54   * tv plugin seems broken, perhaps the html changed.
55
56 Thu Jan 15 21:37:38 GMT 2004  Tom Gilbert <tom@linuxbrit.co.uk>
57
58   * Fixes for ruby 1.8
59
60 0.9.8
61 * new plugin from Alan Third <alan@idiocy.org>, allows you to search and list
62   UK TV programmes.
63
64 0.9.7
65 * various plugin updates
66 * fix (again) for C to F temp conversion in weather plugin
67 * channel topic patch from Peter Suschlik, gives plugin better access to topic
68   changes and related information
69
70 0.9.6
71 * changes to layout of slashdot plugin output
72 * freshmeat plugin, show latest updates or search
73 * fix to C to F temp conversion in weather plugin
74 * status command returns some bot status
75 * fortune plugin
76 * using BDB::Btree everywhere now, instead of BDB::Hash, because the Btree api
77   allows me to set my own key comparison function. This is needed to keep
78   supporting case insensitivity (vital for IRC), which was sadly broken in
79   0.9.5 :( All existing dbs will be upgraded automatically.
80 * roulette plugin - play russian roulette :) also keeps game stats.
81 * new config option, NO_KEYWORD_ADDRESS. If set to "true", the bot will always
82   respond to keywords it knows even when not addressed and the message doesn't
83   start with '. Message must end with "?" however.
84 * hopefully fixed welcome message parsing from certain server types
85
86 0.9.5
87 * plugin object registry
88   This provides persistant storage for plugins via a hash interface. The
89   default mode is an object store, so you can store ruby objects and reference
90   them with hash keys. This is because the default store/restore methods of
91   the plugins' RegistryAccessor are calls to Marshal.dump and Marshal.restore,
92   for example:
93     blah = Hash.new
94     blah[:foo] = "fum"
95     @registry[:blah] = blah
96   then, even after the bot is shut down and disconnected, on the next run you
97   can access the blah object as it was, with:
98     blah = @registry[:blah]
99   The registry can of course be used to store simple strings, fixnums, etc as
100   well, and should be useful to store or cache plugin data or dynamic plugin
101   configuration. 
102
103   If you don't need to store objects, and strictly want a persistant hash of
104   strings, you can override the store/restore methods to suit your needs, for
105   example (in your plugin):
106     def initialize
107       class << @registry
108         def store(val)
109           val
110         end
111         def restore(val)
112           val
113         end
114       end
115     end
116   Your plugins section of the registry is private, it has its own namespace
117   (derived from the plugin's class name, so change it and lose your data).
118   Calls to registry.each etc, will only iterate over your namespace.
119
120   The nickserv and karma plugins use the new registry and should serve as a
121   useful example. Basic usage of the registry is simple, just treat it as a
122   hash, with values that never die (unless you delete() them).
123 * Change to the nickserv plugin. The old method of putting the nickserv
124   password in rbot.conf was useless for multiple nicks or easy updates. The
125   plugin now uses the plugin registry to store passwords for any nicks it
126   owns. The plugin can be told to register the current nick (supply a password
127   or it'll generate one), identify for the current nick (if the password is
128   known), and can be told the passwords for other nicks. If NickServ asks the
129   bot to identify, it will automatically do so if it knows the appropriate
130   password.
131 * karma plugin now uses the plugin registry, it should automatically import
132   your existing, stored karma data into the registry.
133 * The babelfish plugin now caches results in the bot registry to speed up
134   common lookups.
135 * New message types and plugin methods to grab them,
136   quit(QuitMessage):   Called when a user (or the bot) quits IRC
137   nick(NickMessage):   Called when a user (or the bot) changes Nick
138   topic(TopicMessage): Called when a user (or the bot) changes a channel topic
139 * A plugin's listen() method will now receive any kind of Message, e.g.
140   PrivMessage, NoticeMessage, NickMessage, JoinMessage, etc
141 * New plugins:
142   seen: the usual "seen" stuff: 
143         rbot: seen giblet?
144         giblet was last seen xxx ago doing xxx
145   cal:  calls the unix cal program to display a calendar
146   math: evaluates mathematical expressions:
147         rbot: math 2+2
148         rbot: math 4 to the power of 8
149         rbot: math ((232+432) - 4) / 2
150         (ported from infobot. Thanks to Kevin Lenzo, who wrote the
151         original infobot math module)
152   slashdot: displays latest headlines or searches for articles
153   url:  stores urls mentioned in channels for regurgitation later
154   weather: grabs and parses METAR weather data, will remember the last weather
155            code you asked for so you don't have to :)
156 * New utility function, Util.http_get(url) for getting remote data via http,
157   just dumps response.body into a string and returns it, or nil if anything at
158   all goes wrong. Useful for simple plugins.
159 * random quit messages if none specified, messages set in language description
160   file
161 * keywords are now stored in bdb databases - your old keywords.rbot will be
162   imported. Static keywords (fact packs) are also stored in bdb databases, and
163   rbot will automatically convert any text .fact file dropped in the confdir's
164   keywords subdirectory, at startup, into a bdb file. If both a db and a text
165   file exist of the same name (except the extension), the text file will be
166   imported and merged into the database.
167   static keywords will be looked up in each factpack db in turn, in
168   alphabetical filename order - so you can prioritise using the filename if
169   you wish.
170 * fixed a bug with autsplitting long sent lines, the last line was often being
171   split unnecessarily.
172
173 0.9.4
174 * Massive cleanup of rfc2812.rb, contributed by Lars Christensen
175   <dsl8950@vip.cybercity.dk>, gets rid of a lot of regexps
176 * Fixed bug reading static keyword files - "foo <=is=> bar" may not have
177   worked for a couple of releases, only "foo<=is=>bar" was working - this was
178   not intended and should be fixed now
179 * Experimental send queue, to prevent the bot from flooding out, the delay
180   between sending messages to the server defaults to 2s, but is configurable
181   in conf.rbot, set SENDQ_DELAY (0 to disable queueing). You can also set/get
182   the value from the bot, "rbot: options get sendq_delay", and 
183   "rbot: options set sendq_delay 1.5", if you have sufficient auth for "config"
184   This is a bursting sendq, most ircd's allow bursts of up to 5
185   lines, with non-burst limits of 512 bytes/2 seconds. To set the burst limit,
186   configure SENDQ_BURST in conf.rbot, or do the same kind of stuff with
187   "rbot: options set sendq_burst 2", etc.
188   The defaults are 2s/4 burst, which seem to work okay for me.
189 * support for multiple, customisable, addressing prefixes. Set ADDRESS_PREFIX
190   in conf.rbot to a space separate list of addressing prefixes, e.g
191   ADDRESS_PREFIX = | ! =>
192   Would mean that all of the following in channel messages would cause the bot
193   to respond:
194               rbot: version
195               |version
196               !version
197               =>version
198 * bb plugin removed, bb is nearly over and it doesn't work 100% anyway
199 * Two plugins from brailsmt (from #ruby-lang on openprojects), a stats plugin
200   which monitors usage of 1-word sentences, and lart, which allows you to ask
201   rbot to lart people - with an optional reason - larts are user-definable and
202   can be added on the fly.
203 * made google.rb work for people with 1.6 ruby's net/http
204
205 0.9.3
206
207 * fix quit messages
208 * new plugin for handling nickserv-protected nicks, use NICKSERV_PASSWORD in
209   the config file.
210 * fixes to a few other buglets
211 * new plugin to grab bigbrother headlines, still buggy and only useful for UK
212   folks who love bb :-)
213 * fixes to various plugins
214 * Patch from akira yamada <akira@ruby-lang.org>
215   DNS plugin: Use resolv-replace if found, do lookup in new thread
216   Fix bug joining channels with keys
217
218 0.9.2
219
220 * better "connect failure" error message
221 * better option parsing, and --debug option
222 * access to bot's online help via commandline, eg:
223   ./rbot.rb --help
224   ./rbot.rb --help core
225   ./rbot.rb --help "core save"
226 * Fix broken help from last point release
227 * Plugin API modification and cleanup. You no longer need to set @listen to
228   true in order to get all NOTICE and PRIVMSGs, you just need to define the
229   method. The method is now called listen(), renamed from listener(). This
230   should be the last time the plugin api is changed incompatibly.
231 * New plugin method kick(). Use it to see kicks (duh :))
232 * New plugin methods join(), part(). Obvious uses.
233 * Example plugin autorejoin.rb, uses kick event to rejoin channel and insult
234   kicker
235 * fix bug in remind plugins "remind me no more" recognition.
236
237 0.9.1
238
239 * Fix welcome message recognition for certain IRCd's.
240
241 0.9
242
243 * Allow keyword definitions which end in '?', like this:
244   bot: foo is bar\?
245 * rdoc documentation!
246 * fixed broken address regexp, "rbot: .foo" was being treated as an addressed
247   form of "foo" (lost the .)
248 * fix stupid bug in last release (looking for wrong default conf dir)
249
250 0.8
251
252 * Tarball layout change. modules all in rbot/ now, and the rbot/ default
253   configuration moved to rbotconf/. This lets the thing run from an unpacked
254   tarball while also being ready to run with the modules installed somewhere
255   else.
256 * change hashbang to /usr/bin/env ruby, in order to use PATH looking for ruby,
257   it's BSD friendly!
258 * allow "botnick : foo" style addressing, and even "botnick... foo"
259 * slap plugin (contributed by oct)
260 * renamed bot.send to bot.sendmsg, I didn't really want to override send() ;D
261   (thanks Kero)
262
263 0.7.1
264 * Made sane for packagers. Looks in the right places for plugins and language
265   files now, so extra effort shouldn't be needed there.
266
267 0.7
268
269 * Fixed "nick taken on join" bug
270 * Dice plugin patch from David Dorward
271 * fix searchquote regexp
272 * conf.rbot: PASSWORD -> SERVER_PASSWORD, to prevent confusion with PASSWD,
273   which is for master auth.
274
275 0.6
276
277 * Fixed addquote (was incrementing quote ID twice)
278 * now strips colour/bold escapes from incoming messages (rbot was ignoring
279   messages addressed using a bolded colon, for example).
280 * minor bugfixes
281 * more language breadth
282 * Addressing works better now
283 * Can autojoin channels with keys, conf.rbot line is:
284   autojoin_channels #chan1, #chan2, #chan3 key, #chan4 key, #chan5
285 * dice plugin fixes
286
287 0.5
288
289 * Initial release