]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
factoids plugin: add have and do in trigger_pattern
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 12 Feb 2008 23:06:25 +0000 (00:06 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 12 Feb 2008 23:06:25 +0000 (00:06 +0100)
data/rbot/plugins/factoids.rb

index 5107422120f81eb6d00c4a02cc233d7e9528feb6..2d9596e704e05929c026737e04716d430328e86c 100644 (file)
@@ -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")