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