From 21c492a38db47c4a50329f6cd734fba0b88b714d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 13 Feb 2008 00:06:25 +0100 Subject: factoids plugin: add have and do in trigger_pattern --- data/rbot/plugins/factoids.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/rbot/plugins/factoids.rb b/data/rbot/plugins/factoids.rb index 51074221..2d9596e7 100644 --- a/data/rbot/plugins/factoids.rb +++ b/data/rbot/plugins/factoids.rb @@ -84,10 +84,10 @@ class FactoidsPlugin < Plugin # TODO default should be language-specific Config.register Config::ArrayValue.new('factoids.trigger_pattern', :default => [ - "(this|that|a|the|an|all|both)\\s+(.*)\\s+(is|are)\\s+.*:2", - "(this|that|a|the|an|all|both)\\s+(.*?)\\s+(is|are)\\s+.*:2", - "(.*)\\s+(is|are)\\s+.*", - "(.*?)\\s+(is|are)\\s+.*", + "(this|that|a|the|an|all|both)\\s+(.*)\\s+(is|are|has|have|does|do)\\s+.*:2", + "(this|that|a|the|an|all|both)\\s+(.*?)\\s+(is|are|has|have|does|do)\\s+.*:2", + "(.*)\\s+(is|are|has|have|does|do)\\s+.*", + "(.*?)\\s+(is|are|has|have|does|do)\\s+.*", ], :on_change => Proc.new { |bot, v| bot.plugins['factoids'].reset_triggers }, :desc => "A list of regular expressions matching factoids where keywords can be identified. append ':n' if the keyword is defined by the n-th group instead of the first. if the list is empty, any word will be considered a keyword") -- cgit v1.2.3