Skip to content
Browse files

more regex fun

  • Loading branch information...
1 parent 2569e5e commit c0d020e9c3d32f77ba3ba07b58d989f81ec94aea @dbarbar dbarbar committed
Showing with 1 addition and 7 deletions.
  1. +1 −7 scripts/fierce.coffee
View
8 scripts/fierce.coffee
@@ -55,7 +55,7 @@ words = [
]
module.exports = (robot) ->
- robot.respond /(fierce) (.*)/i, (msg) ->\
+ robot.respond /fierce( )?(.*)/i, (msg) ->
pub = msg.match[2]
if pub
if pub is "me"
@@ -65,12 +65,6 @@ module.exports = (robot) ->
else
msg.send "http://www.mutatedcreativity.com/dev/f/logo/?pub=Fierce" + words[Math.floor(Math.random() * words.length)] + words[Math.floor(Math.random() * words.length)] + "&ext=.png"
- robot.respond /(fierce me)/i, (msg) ->
- msg.send "http://www.mutatedcreativity.com/dev/f/logo/?pub=Fierce" + words[Math.floor(Math.random() * words.length)] + words[Math.floor(Math.random() * words.length)] + "&ext=.png"
-
- robot.respond /(fierce me)/i, (msg) ->
- msg.send "http://www.mutatedcreativity.com/dev/f/logo/?pub=Fierce" + words[Math.floor(Math.random() * words.length)] + words[Math.floor(Math.random() * words.length)] + "&ext=.png"
-
robot.respond /find in (project|dir|directory) (.*)/i, (msg) ->
msg.send 'find . -type f | xargs grep -i "' + msg.match[2] + '"'

0 comments on commit c0d020e

Please sign in to comment.
Something went wrong with that request. Please try again.