summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-02-13 00:06:25 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-02-13 00:06:25 +0100
commit21c492a38db47c4a50329f6cd734fba0b88b714d (patch)
treef5e580020c07b1d1f3417b2285bb5cdc9eb2a571
parent485a5e503f1f60d363c0018dd8d10ad1a2088479 (diff)
factoids plugin: add have and do in trigger_pattern
-rw-r--r--data/rbot/plugins/factoids.rb8
1 files 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")