Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #541 from smathy/patch-1

DRY up khanify/kahnify
  • Loading branch information...
commit de4993bd45d3afe73a478d1113b16d884c8a784b 2 parents 23a88d7 + 457affc
Austin Spires authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/scripts/meme_generator.coffee
View
6 src/scripts/meme_generator.coffee
@@ -60,14 +60,10 @@ module.exports = (robot) ->
memeGenerator msg, 1591, 112464, msg.match[1], msg.match[2], (url) ->
msg.send url
- robot.respond /khanify (.*)/i, (msg) ->
+ robot.respond /k(?:ha|ah)nify (.*)/i, (msg) ->
memeGenerator msg, 6443, 1123022, "", khanify(msg.match[1]), (url) ->
msg.send url
- robot.respond /kahnify (.*)/i, (msg) ->
- memeGenerator msg, 6443, 1123022, "", khanify(msg.match[1]), (url) ->
- msg.send url
-
robot.respond /(NOT SURE IF .*) (OR .*)/i, (msg) ->
memeGenerator msg, 305, 84688, msg.match[1], msg.match[2], (url) ->
msg.send url
Please sign in to comment.
Something went wrong with that request. Please try again.