rbot
18 years agoswitch the fish plugin to use the new map mechanism
Tom Gilbert [Tue, 26 Jul 2005 22:13:46 +0000 (22:13 +0000)] 
switch the fish plugin to use the new map mechanism

18 years ago * Prevent multiple plugin registrations of the same name
Tom Gilbert [Tue, 26 Jul 2005 21:50:00 +0000 (21:50 +0000)] 
  * Prevent multiple plugin registrations of the same name
* 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+$/}

18 years agobit of error checking/reporting
Tom Gilbert [Thu, 21 Jul 2005 11:40:21 +0000 (11:40 +0000)] 
bit of error checking/reporting

18 years agofix up the new http util to work properly with GET's
Tom Gilbert [Thu, 21 Jul 2005 11:39:57 +0000 (11:39 +0000)] 
fix up the new http util to work properly with GET's

18 years agoWed Jul 20 23:30:01 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
Tom Gilbert [Thu, 21 Jul 2005 11:03:46 +0000 (11:03 +0000)] 
Wed Jul 20 23:30:01 BST 2005  Tom Gilbert <tom@linuxbrit.co.uk>

  * 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

18 years agorework the tube plugin's html parser a bit, to enable it to work properly
Tom Gilbert [Thu, 21 Jul 2005 11:02:04 +0000 (11:02 +0000)] 
rework the tube plugin's html parser a bit, to enable it to work properly
with tricky station names, such as hammersmity & city.

18 years agoupdate ChangeLog
Tom Gilbert [Wed, 20 Jul 2005 00:18:13 +0000 (00:18 +0000)] 
update ChangeLog

18 years agoAdd new httputil object to the bot object, to be used by plugins etc that
Tom Gilbert [Wed, 20 Jul 2005 00:17:51 +0000 (00:17 +0000)] 
Add new httputil object to the bot object, to be used by plugins etc that
wish to make http requests. It sets up all the proxies etc for them
according to bot config.

18 years agoenable in-channel usage
Tom Gilbert [Tue, 19 Jul 2005 23:45:52 +0000 (23:45 +0000)] 
enable in-channel usage

18 years agoat some point over the last couple of years, the ruby http library started
Tom Gilbert [Tue, 19 Jul 2005 16:13:21 +0000 (16:13 +0000)] 
at some point over the last couple of years, the ruby http library started
throwing timeout exceptions from .new, wheras they used to come from .get.
This means timeouts kill the bot so I've moved all the http code into the
begin block.

18 years agostarting on an http interface for configuring the bot
Tom Gilbert [Sun, 17 Jul 2005 22:56:16 +0000 (22:56 +0000)] 
starting on an http interface for configuring the bot

18 years agoupdate ChangeLog
Tom Gilbert [Sat, 16 Jul 2005 01:24:01 +0000 (01:24 +0000)] 
update ChangeLog

18 years agothat wasn't ideal
Tom Gilbert [Sat, 16 Jul 2005 01:20:54 +0000 (01:20 +0000)] 
that wasn't ideal

18 years agotypo
Tom Gilbert [Sat, 16 Jul 2005 01:19:54 +0000 (01:19 +0000)] 
typo

18 years agovarious fixes by me, plus most of Rene's patch (#1).
Tom Gilbert [Sat, 16 Jul 2005 01:18:13 +0000 (01:18 +0000)] 
various fixes by me, plus most of Rene's patch (#1).

18 years agoadded karmastats to the karma plugin
Tom Gilbert [Sat, 16 Jul 2005 01:06:41 +0000 (01:06 +0000)] 
added karmastats to the karma plugin

18 years agogerman language file submitted by Rene
Tom Gilbert [Sat, 16 Jul 2005 00:20:11 +0000 (00:20 +0000)] 
german language file submitted by Rene

18 years agoautoop plugin submitted by Rene Nussbaumer, tweaked by me.
Tom Gilbert [Sat, 16 Jul 2005 00:19:33 +0000 (00:19 +0000)] 
autoop plugin submitted by Rene Nussbaumer, tweaked by me.

18 years agoRudolf Polzer pointed out (a while ago, I forgot to apply this fix) an issue
Tom Gilbert [Thu, 14 Jul 2005 22:51:05 +0000 (22:51 +0000)] 
Rudolf Polzer pointed out (a while ago, I forgot to apply this fix) an issue
with rbot's string handling. Most ircds are pretty liberal about lines
ending in various combinations of \r, \n, etc.

We need to be careful about strings we pass to the ircd that may have come
from users/untrusted sources (such as the output of the wserver plugin), and
sanitize their line endings so that raw commands can't be sneaked through to
the ircd.

18 years agothis is a common error
Tom Gilbert [Thu, 14 Jul 2005 21:01:03 +0000 (21:01 +0000)] 
this is a common error

18 years agoWebrick functionality is now in a plugin
Tom Gilbert [Thu, 14 Jul 2005 12:02:31 +0000 (12:02 +0000)] 
Webrick functionality is now in a plugin

18 years agofix for new xml format
Tom Gilbert [Mon, 11 Jul 2005 12:42:17 +0000 (12:42 +0000)] 
fix for new xml format

19 years agofixy
Tom Gilbert [Mon, 25 Apr 2005 12:39:19 +0000 (12:39 +0000)] 
fixy

19 years agofix http usage, other tweaks
Tom Gilbert [Thu, 10 Mar 2005 12:11:17 +0000 (12:11 +0000)] 
fix http usage, other tweaks

19 years agoNickserv fixes
Tom Gilbert [Sun, 10 Oct 2004 23:46:48 +0000 (23:46 +0000)] 
Nickserv fixes

19 years agokeyword searching
Tom Gilbert [Sat, 9 Oct 2004 22:25:33 +0000 (22:25 +0000)] 
keyword searching

19 years agoinitial import of rbot
Tom Gilbert [Sat, 9 Oct 2004 01:51:05 +0000 (01:51 +0000)] 
initial import of rbot