lib/lita/handlers/whoami.rb in lita-whoami-0.1.0 vs lib/lita/handlers/whoami.rb in lita-whoami-0.1.1

- old
+ new

@@ -1,14 +1,14 @@ module Lita module Handlers class Whoami < Handler REDIS_KEY = 'lita-whoami' - route(/(\w+) is (.+)/, :assign_person, command: true, help: { + route(/^(\w+) is (.+)/, :assign_person, command: true, help: { "SOMEONE is SOMETHING" => "Tell everbot that someone is something." }) - route(/who ?is (\w+)/, :describe_person, command: true, help: { + route(/^who ?is (\w+)/, :describe_person, command: true, help: { "SOMEONE is SOMETHING" => "Tell everbot that someone is something." }) def key_for_person name "#{REDIS_KEY}:#{name}"