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