Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-07-26 | switch fortune to use new maps | Tom Gilbert | |
2005-07-26 | switch the fish plugin to use the new map mechanism | Tom Gilbert | |
2005-07-26 | * Prevent multiple plugin registrations of the same name | Tom Gilbert | |
* reworking the config system to use yaml for persistence * reworking the config system key names * on first startup, the bot will prompt for the essential startup config * new config module for configuring the bot at runtime * new config module includes new configurables, for example changing the bot's language at runtime. * various other fixes * New way of mapping plugins to strings, using maps. These may be familiar to rails users. This is to reduce the amount of regexps plugins currently need to do to parse arguments. The old method (privmsg) is still supported, of course. Example plugin now: def MyPlugin < Plugin def foo(m, params) m.reply "bar" end def complexfoo(m, params) m.reply "qux! (#{params[:bar]} #{params[:baz]})" end end plugin = MyPlugin.new # simple map plugin.map 'foo' # this will match "rbot: foo somestring otherstring" and pass the # parameters as a hash using the names in the map. plugin.map 'foo :bar :baz', :action => 'complexfoo' # this means :foo is an optional parameter plugin.map 'foo :foo', :defaults => {:foo => 'bar'} # you can also gobble up into an array plugin.map 'foo *bar' # params[:bar] will be an array of string elements # and you can validate, here the first param must be a number plugin.map 'foo :bar', :requirements => {:foo => /^\d+$/} | |||
2005-07-21 | bit of error checking/reporting | Tom Gilbert | |
2005-07-21 | Wed Jul 20 23:30:01 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk> | Tom Gilbert | |
* Move some core plugins to use the new httputil * fix wserver's redirection handling for relative (i.e. broken) redirects * fix tube plugin's html parsing | |||
2005-07-21 | rework the tube plugin's html parser a bit, to enable it to work properly | Tom Gilbert | |
with tricky station names, such as hammersmity & city. | |||
2005-07-20 | Add new httputil object to the bot object, to be used by plugins etc that | Tom Gilbert | |
wish to make http requests. It sets up all the proxies etc for them according to bot config. | |||
2005-07-19 | enable in-channel usage | Tom Gilbert | |
2005-07-17 | starting on an http interface for configuring the bot | Tom Gilbert | |
2005-07-16 | that wasn't ideal | Tom Gilbert | |
2005-07-16 | typo | Tom Gilbert | |
2005-07-16 | various fixes by me, plus most of Rene's patch (#1). | Tom Gilbert | |
2005-07-16 | added karmastats to the karma plugin | Tom Gilbert | |
2005-07-16 | autoop plugin submitted by Rene Nussbaumer, tweaked by me. | Tom Gilbert | |
2005-07-11 | fix for new xml format | Tom Gilbert | |
2005-03-10 | fix http usage, other tweaks | Tom Gilbert | |
2004-10-10 | Nickserv fixes | Tom Gilbert | |
2004-10-09 | initial import of rbot | Tom Gilbert | |