Skip to content

Commit

Permalink
Merge pull request github#260 from danielcbaldwin/master
Browse files Browse the repository at this point in the history
Made a change to the "shorten" command to make it a little easier to use.
  • Loading branch information
atmos committed Jan 17, 2012
2 parents 8635165 + eba5847 commit 5029377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/shorten.coffee
@@ -1,9 +1,9 @@
# Shorten URLs with bit.ly
#
# (bitly|shorten) me <url> - Shorten the URL using bit.ly
# (bitly|shorten) (me) <url> - Shorten the URL using bit.ly

module.exports = (robot) ->
robot.respond /(bitly|shorten) (me)? (.+)$/, (msg) ->
robot.respond /(bitly|shorten)\s?(me)?\s?(.+)$/, (msg) ->
msg
.http("http://api.bitly.com/v3/shorten")
.query
Expand Down

0 comments on commit 5029377

Please sign in to comment.