Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit 5a59e2a

Browse files
Merge pull request #1251 from amco/master
Probably what the excuses author meant in their regex
2 parents d9a5a61 + f40bc93 commit 5a59e2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/excuse.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ DESIGNER_EXCUSES = [
4848
]
4949

5050
module.exports = (robot) ->
51-
robot.respond /developer excuse|excuse (?: me)?/i, (msg) ->
51+
robot.respond /developer excuse|excuse(?: me)?/i, (msg) ->
5252
robot.http("http://developerexcuses.com")
5353
.get() (err, res, body) ->
5454
matches = body.match /<a [^>]+>(.+)<\/a>/i
5555

5656
if matches and matches[1]
5757
msg.send matches[1]
5858

59-
robot.respond /designer excuse (?: me)?/i, (msg) ->
59+
robot.respond /designer excuse|excuse(?: me)?/i, (msg) ->
6060
msg.send msg.random(DESIGNER_EXCUSES)

0 commit comments

Comments
 (0)