lib/lita/handlers/tweet.rb in lita-tweet-0.4.1 vs lib/lita/handlers/tweet.rb in lita-tweet-0.4.2

- old
+ new

@@ -5,14 +5,14 @@ class Tweet < Handler config :consumer_key, type: String config :consumer_secret, type: String config :http_url - route %r{^tweet\s(.+)}, :tweet, command: true, restrict_to: :tweeters, + route %r{\Atweet\s(.+)}m, :tweet, command: true, restrict_to: :tweeters, help: {"tweet MESSAGE" => "Post a tweet."} - route %r{^untweet}, :untweet, command: true, restrict_to: :tweeters, + route %r{\Auntweet}, :untweet, command: true, restrict_to: :tweeters, help: {"untweet" => "Delete the last tweet."} - route %r{^twitter accounts}, :accounts, command: true, + route %r{\Atwitter accounts}, :accounts, command: true, restrict_to: :tweeters, help: { "twitter accounts" => "List accounts that can be tweeted from.", "twitter accounts add" => "Authorize a new account for tweeting.", "twitter accounts remove NAME" => "Remove the twitter account NAME." }