]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Optimize remind plugin exploiting new message mapper
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 25 Aug 2006 23:34:51 +0000 (23:34 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 25 Aug 2006 23:34:51 +0000 (23:34 +0000)
data/rbot/plugins/remind.rb

index ef9d4be75525b9eecafc9a675519b03bbacec9e1..8cc263b8d60b6decb401254a4331161043824ecb 100644 (file)
@@ -216,13 +216,9 @@ class RemindPlugin < Plugin
 end
 plugin = RemindPlugin.new
 plugin.map 'remind me no more', :action => 'no_more'
-plugin.map 'remind me no more about *string', :action => 'no_more'
-plugin.map 'remind me no more *string', :action => 'no_more'
-plugin.map 'remind me about *string'
-plugin.map 'remind me *string'
+plugin.map 'remind me no more [about] *string', :action => 'no_more'
+plugin.map 'remind me [about] *string'
 plugin.map 'remind :who no more', :auth => 'remind_other', :action => 'no_more'
-plugin.map 'remind :who no more about *string', :auth => 'remind_other', :action => 'no_more'
-plugin.map 'remind :who no more *string', :auth => 'remind_other', :action => 'no_more'
-plugin.map 'remind :who about *string', :auth => 'remind_other'
-plugin.map 'remind :who *string', :auth => 'remind_other'
+plugin.map 'remind :who no more [about] *string', :auth => 'remind_other', :action => 'no_more'
+plugin.map 'remind :who [about] *string', :auth => 'remind_other'