Skip to content

Commit c17fb63

Browse files
committed
Merge pull request github#513 from vosechu/warrenellis
Warrenellis
2 parents 47c3cb0 + dbada97 commit c17fb63

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Description:
2+
# Talklikewarrenellis.com random quote builder
3+
#
4+
# Dependencies:
5+
# None
6+
#
7+
# Configuration:
8+
# None
9+
#
10+
# Commands:
11+
# hubot good morning - Receive a random quote from the warren ellis generator
12+
#
13+
# Author:
14+
# vosechu
15+
16+
module.exports = (robot) ->
17+
18+
robot.hear /(talk like warren ellis|ellis)/i, (msg) ->
19+
msg.http("http://talklikewarrenellis.com/random.php")
20+
.get() (err, res, body) ->
21+
msg.send JSON.parse(body).quote
22+
23+
robot.hear /good (morning|afternoon|evening|day|night)/i, (msg) ->
24+
msg.http("http://talklikewarrenellis.com/random.php")
25+
.get() (err, res, body) ->
26+
msg.send JSON.parse(body).quote
27+
28+

0 commit comments

Comments
 (0)